diff options
Diffstat (limited to 'roles/diagnostics/tasks/aide.yml')
-rw-r--r-- | roles/diagnostics/tasks/aide.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/diagnostics/tasks/aide.yml b/roles/diagnostics/tasks/aide.yml new file mode 100644 index 0000000..a8640fd --- /dev/null +++ b/roles/diagnostics/tasks/aide.yml @@ -0,0 +1,16 @@ +- name: Installation du HIDS AIDE + yum: name=aide state=present + when: ansible_pkg_mgr == "yum" + +- name: Installation du HIDS AIDE + dnf: name=aide state=present + when: ansible_pkg_mgr == "dnf" + +- name: Activation Cron du HIDS AIDE + copy: + src: aidereport.sh + dest: /etc/cron.daily/z-aidereport.sh + mode: 0755 + when: ansible_distribution == "Fedora" and ansible_distribution_version|int >= 28 and + ansible_virtualization_role == "NA" or ansible_virtualization_role == "host" + notify: initialize aide |