summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/aide.yml
blob: f8335dd2ebb356b6cf88d770f6621c397563de64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- 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=755
  when: ansible_distribution == "Fedora" and ansible_distribution_version|int >= 28 and
        ansible_virtualization_role == "NA" or ansible_virtualization_role == "host"
  notify: initialize aide