diff options
Diffstat (limited to 'playbooks/hids-db-update.yml')
-rw-r--r-- | playbooks/hids-db-update.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/playbooks/hids-db-update.yml b/playbooks/hids-db-update.yml new file mode 100644 index 0000000..1e8c0ca --- /dev/null +++ b/playbooks/hids-db-update.yml @@ -0,0 +1,15 @@ +--- +- hosts: all + remote_user: root + tasks: + - name: rkhunter internal database update + command: /usr/bin/rkhunter --propupd + when: ansible_virtualization_role == "NA" or ansible_virtualization_role == "host" + + - name: aide internal database reset + command: /usr/sbin/aide -i + when: ansible_virtualization_role == "NA" or ansible_virtualization_role == "host" + + - name: aide internal database update + command: /usr/bin/cp -f /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz + when: ansible_virtualization_role == "NA" or ansible_virtualization_role == "host" |