diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-10-22 16:41:45 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-10-22 16:41:45 +0200 |
commit | 0df015e9b5c4aefd4245c94ee98021d2af80ed99 (patch) | |
tree | d9dbf4259500857daf41b627dbc2d116ba92dbc1 /roles/grafana/tasks/main.yml | |
parent | 1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff) | |
download | rules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz |
lint: pass ansible-lint + yamllint
Diffstat (limited to 'roles/grafana/tasks/main.yml')
-rw-r--r-- | roles/grafana/tasks/main.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/roles/grafana/tasks/main.yml b/roles/grafana/tasks/main.yml index 7c1a19c..ac27e40 100644 --- a/roles/grafana/tasks/main.yml +++ b/roles/grafana/tasks/main.yml @@ -1,10 +1,10 @@ - name: install grafana - package: + ansible.builtin.package: name: grafana state: present - name: create grafana directory - file: + ansible.builtin.file: path: "{{ grafana_dir }}/{{ item }}" owner: "{{ grafana_user }}" group: "{{ grafana_group }}" @@ -17,7 +17,7 @@ - plugins - name: generate grafana configuration - template: + ansible.builtin.template: src: grafana.ini.j2 dest: "{{ grafana_configuration_file }}" owner: 0 @@ -25,7 +25,7 @@ mode: 0644 - name: generate grafana data sources - template: + ansible.builtin.template: src: datasources-default.yml.j2 dest: /etc/grafana/provisioning/datasources/default.yml owner: "{{ grafana_user }}" @@ -33,7 +33,7 @@ mode: 0640 - name: start and enable grafana service - service: + ansible.builtin.service: name: grafana state: restarted enabled: true |