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/prometheus/tasks | |
parent | 1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff) | |
download | rules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz |
lint: pass ansible-lint + yamllint
Diffstat (limited to 'roles/prometheus/tasks')
-rw-r--r-- | roles/prometheus/tasks/main.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/prometheus/tasks/main.yml b/roles/prometheus/tasks/main.yml index 5d5c1f3..900157f 100644 --- a/roles/prometheus/tasks/main.yml +++ b/roles/prometheus/tasks/main.yml @@ -1,12 +1,12 @@ - name: install prometheus - package: + ansible.builtin.package: name: - prometheus - node_exporter state: present - name: generate prometheus configuration - template: + ansible.builtin.template: src: prometheus.conf.j2 dest: "{{ prometheus_configuration_file }}" owner: 0 @@ -14,7 +14,7 @@ mode: 0644 - name: enable and restart prometheus services - service: + ansible.builtin.service: name: "{{ item }}" state: restarted enabled: true |