summaryrefslogtreecommitdiffstats
path: root/roles/diagnostics/tasks/hidsdb.yml
blob: 7269ac97cadc99b238396404e0c80fd8bc4f8d6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- name: mise à jour du système
  package:
    name: "*"
    state: latest
  tags: hidsdb

- name: rkhunter internal database update
  command: /usr/bin/rkhunter --propupd
  tags: hidsdb

- name: aide internal database reset
  command: /usr/sbin/aide -i
  register: hashinfo
  tags: hidsdb

- name: aide internal database update
  command: /usr/bin/cp -f /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
  tags: hidsdb

- name: store database hash informations in file
  template:
    src: aidedb-global.txt.j2
    dest: /root/aidedb-global.txt
  tags: hidsdb

- name: fetch database hash informations
  fetch:
    src: /root/aidedb-global.txt
    dest: roles/diagnostics/files/aidedb-hash/
  tags: hidsdb