aboutsummaryrefslogtreecommitdiffstats
path: root/roles/loki
diff options
context:
space:
mode:
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.