summaryrefslogtreecommitdiffstats
path: root/roles/diagnostics/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/diagnostics/tasks')
-rw-r--r--roles/diagnostics/tasks/aide.yml9
-rw-r--r--roles/diagnostics/tasks/cron.yml9
2 files changed, 6 insertions, 12 deletions
diff --git a/roles/diagnostics/tasks/aide.yml b/roles/diagnostics/tasks/aide.yml
index 72fc4b1..6652be7 100644
--- a/roles/diagnostics/tasks/aide.yml
+++ b/roles/diagnostics/tasks/aide.yml
@@ -1,10 +1,7 @@
- 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"
+ package:
+ name: aide
+ state: present
- name: Activation Cron du HIDS AIDE
copy:
diff --git a/roles/diagnostics/tasks/cron.yml b/roles/diagnostics/tasks/cron.yml
index 31ab4b2..cddaac2 100644
--- a/roles/diagnostics/tasks/cron.yml
+++ b/roles/diagnostics/tasks/cron.yml
@@ -1,10 +1,7 @@
- name: Installation démon Cron
- yum: name=crontabs state=present
- when: ansible_pkg_mgr == "yum"
-
-- name: Installation démon Cron
- dnf: name=crontabs state=present
- when: ansible_pkg_mgr == "dnf"
+ package:
+ name: crontabs
+ state: present
- name: Rapport disques durs
template: