From 637b74a2ada52f5b897b489e60469fa8d71935eb Mon Sep 17 00:00:00 2001 From: Jeltz Date: Sat, 13 Mar 2021 05:05:30 +0100 Subject: [PATCH] Fix some linter issues --- .ansible-lint | 1 + roles/rsyslog_collector/tasks/main.yml | 2 +- roles/rsyslog_common/tasks/main.yml | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.ansible-lint b/.ansible-lint index d98efd4..0e01ba3 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -2,6 +2,7 @@ skip_list: - no-changed-when - load-failure - document-start + - meta-no-info warn_list: - experimental # all rules tagged as experimental diff --git a/roles/rsyslog_collector/tasks/main.yml b/roles/rsyslog_collector/tasks/main.yml index 0c122e9..dc64fcc 100644 --- a/roles/rsyslog_collector/tasks/main.yml +++ b/roles/rsyslog_collector/tasks/main.yml @@ -3,7 +3,7 @@ become: true apt: name: rsyslog-relp - state: latest + state: present when: "rsyslog_inputs | selectattr('proto', 'eq', 'relp') | list" - name: Ensure log storage directory exists diff --git a/roles/rsyslog_common/tasks/main.yml b/roles/rsyslog_common/tasks/main.yml index c3a0cc3..030fd10 100644 --- a/roles/rsyslog_common/tasks/main.yml +++ b/roles/rsyslog_common/tasks/main.yml @@ -3,13 +3,13 @@ become: true apt: name: rsyslog - state: latest + state: present - name: Install rsyslog modules if needed become: true apt: name: "{{ item.pkg }}" - state: latest + state: present when: "rsyslog_outputs | selectattr('proto', 'eq', item.proto) | list" loop: - proto: relp