summaryrefslogtreecommitdiffstats
path: root/playbooks/hids-db-update.yml
blob: 1e8c0cad52cba6493ecf2ac87476fb5c99cddf4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"