aboutsummaryrefslogtreecommitdiffstats
path: root/roles/loki
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
commit0df015e9b5c4aefd4245c94ee98021d2af80ed99 (patch)
treed9dbf4259500857daf41b627dbc2d116ba92dbc1 /roles/loki
parent1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff)
downloadrules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz
lint: pass ansible-lint + yamllint
Diffstat (limited to 'roles/loki')
-rw-r--r--roles/loki/tasks/main.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/roles/loki/tasks/main.yml b/roles/loki/tasks/main.yml
index 4584da1..7315f18 100644
--- a/roles/loki/tasks/main.yml
+++ b/roles/loki/tasks/main.yml
@@ -1,10 +1,10 @@
- name: install loki
- package:
+ ansible.builtin.package:
name: loki
state: present
- name: generate loki configuration
- template: &config_gen
+ ansible.builtin.template: &config_gen
src: loki.yml.j2
dest: "{{ loki_configuration_file }}"
owner: 0
@@ -12,13 +12,13 @@
mode: 0644
- name: generate promtail configuration
- template:
+ ansible.builtin.template:
<<: *config_gen
src: promtail.yml.j2
dest: "{{ loki_promtail_configuration_file }}"
- name: add loki user to wheel group
- user:
+ ansible.builtin.user:
name: "{{ loki_user }}"
groups:
- 0
@@ -26,7 +26,7 @@
append: true
- name: enable and restart loki daemons
- service:
+ ansible.builtin.service:
name: "{{ item }}"
state: restarted
enabled: true
remember that computers suck.