chore: use FQCN for module name

This commit is contained in:
Adrien Waksberg 2021-08-21 23:15:13 +02:00
parent ad41f3c768
commit c11d156391
3 changed files with 17 additions and 11 deletions

View file

@ -5,6 +5,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
## Unreleased ## Unreleased
### Changed
- chore: use FQCN for module name
## 1.0.1 - 2019-08-17 ## 1.0.1 - 2019-08-17
### Fixed ### Fixed

View file

@ -1,5 +1,5 @@
--- ---
- name: restart grafana - name: restart grafana
systemd: ansible.builtin.service:
name: grafana-server name: grafana-server
state: restarted state: restarted

View file

@ -1,14 +1,15 @@
--- ---
- name: install dependencies packages - name: install dependencies packages
apt: ansible.builtin.package:
name: apt-transport-https name:
- apt-transport-https
retries: 2 retries: 2
register: result register: result
until: result is succeeded until: result is succeeded
tags: grafana tags: grafana
- name: add repository key - name: add repository key
apt_key: ansible.builtin.apt_key:
url: https://packages.grafana.com/gpg.key url: https://packages.grafana.com/gpg.key
retries: 2 retries: 2
register: result register: result
@ -16,20 +17,21 @@
tags: grafana tags: grafana
- name: add repository - name: add repository
apt_repository: ansible.builtin.apt_repository:
repo: deb https://packages.grafana.com/oss/deb stable main repo: deb https://packages.grafana.com/oss/deb stable main
tags: grafana tags: grafana
- name: install grafana package - name: install grafana package
apt: ansible.builtin.package:
name: grafana name:
- grafana
retries: 2 retries: 2
register: result register: result
until: result is succeeded until: result is succeeded
tags: grafana tags: grafana
- name: copy configuration file - name: copy configuration file
template: ansible.builtin.template:
src: grafana.ini.j2 src: grafana.ini.j2
dest: /etc/grafana/grafana.ini dest: /etc/grafana/grafana.ini
owner: root owner: root
@ -39,7 +41,7 @@
tags: grafana tags: grafana
- name: copy ldap configuration file - name: copy ldap configuration file
template: ansible.builtin.template:
src: ldap.toml.j2 src: ldap.toml.j2
dest: /etc/grafana/ldap.toml dest: /etc/grafana/ldap.toml
owner: root owner: root
@ -58,8 +60,8 @@
tags: grafana tags: grafana
- name: enable and start service - name: enable and start service
systemd: ansible.builtin.service:
name: grafana-server name: grafana-server
state: started state: started
enabled: yes enabled: true
tags: grafana tags: grafana