From 0df015e9b5c4aefd4245c94ee98021d2af80ed99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 22 Oct 2022 16:41:45 +0200 Subject: lint: pass ansible-lint + yamllint --- roles/loki/tasks/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'roles/loki/tasks/main.yml') 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 -- cgit v1.2.3