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