summaryrefslogtreecommitdiffstats
path: root/roles/diagnostics/tasks/aide.yml
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2018-10-21 12:06:09 +0200
committerMatthieu Saulnier <fantom@fedoraproject.org>2018-10-21 12:06:09 +0200
commit70a98118cefc95c3fc131a9a9029c61153d9766e (patch)
tree9b099781694301ca3df52f1ef8e8327aa019b542 /roles/diagnostics/tasks/aide.yml
parentb79f383bc5d82302ee4e292c284e2482ae8fd24f (diff)
downloadplaybooks-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.yml16
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