diff --git a/pylint_extra_requirements.txt b/pylint_extra_requirements.txt deleted file mode 100644 index 8d280fc..0000000 --- a/pylint_extra_requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -# SPDX-License-Identifier: MIT - -# Write extra requirements for running pylint here: diff --git a/pytest_extra_requirements.txt b/pytest_extra_requirements.txt deleted file mode 100644 index 8e11eaa..0000000 --- a/pytest_extra_requirements.txt +++ /dev/null @@ -1,7 +0,0 @@ -# SPDX-License-Identifier: MIT - -# Write extra requirements for running pytest here: -# If you need ansible then uncomment the following line: --ransible_pytest_extra_requirements.txt -# If you need mock then uncomment the following line: -mock ; python_version < "3.0" diff --git a/tasks/main.yml b/tasks/main.yml index 73fedb2..89e7dde 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -42,6 +42,7 @@ - name: Initialize AIDE database ansible.builtin.command: cmd: aide --init + changed_when: true - name: Fetch AIDE database ansible.builtin.fetch: @@ -72,7 +73,7 @@ - name: Check against AIDE reference database ansible.builtin.command: cmd: aide --check - changed_when: false + changed_when: true - name: Update AIDE database and fetch it become: true @@ -85,6 +86,7 @@ cmd: aide --update register: __aide_update_result failed_when: __aide_update_result.rc > 7 + changed_when: true - name: Fetch AIDE database ansible.builtin.fetch: diff --git a/templates/aide.conf.j2 b/templates/aide.conf.j2 index 02d06b6..60b69a4 100644 --- a/templates/aide.conf.j2 +++ b/templates/aide.conf.j2 @@ -1,3 +1,5 @@ +{{ ansible_managed | comment }} +{{ "system_role:aide" | comment(prefix="", postfix="") }} # Example configuration file for AIDE. @@define DBDIR /var/lib/aide