diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-10-21 12:06:09 +0200 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-10-21 12:06:09 +0200 |
commit | 70a98118cefc95c3fc131a9a9029c61153d9766e (patch) | |
tree | 9b099781694301ca3df52f1ef8e8327aa019b542 /roles/diagnostics/tasks/aide.yml | |
parent | b79f383bc5d82302ee4e292c284e2482ae8fd24f (diff) | |
download | playbooks-ansible-70a98118cefc95c3fc131a9a9029c61153d9766e.tar.gz playbooks-ansible-70a98118cefc95c3fc131a9a9029c61153d9766e.tar.xz playbooks-ansible-70a98118cefc95c3fc131a9a9029c61153d9766e.zip |
Split diagnostic tasks into a new role
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 |