-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecurity_scans.yml
53 lines (44 loc) · 1.25 KB
/
security_scans.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
- hosts: archlaptop
remote_user: eternaltyro
become: yes
tasks:
- name: Install Fangfrisch
ansible.builtin.command:
argv:
- /usr/bin/yay
- --answerclean
- y
- python-fangfrisch
- name: Initialise Fangfrisch DB
ansible.builtin.command: /usr/bin/fangfrisch --conf /etc/fangfrisch/fangfrisch.conf initdb
become: yes
become_user: clamav
args:
creates: /var/lib/fangfrisch/db.sqlite
- name: Enable Fangfrisch scheduled runs
ansible.builtin.systemd:
name: fangfrisch.timer
state: started
enabled: true
- name: Run RKHUNTER property update
ansible.builtin.command: rkhunter --propupd
become: yes
tags: never
- name: Run RKHUNTER checks
ansible.builtin.command: rkhunter --check --skip-keypress --report-warnings-only
become: yes
tags: never
- name: Run chkrootkit checks
ansible.builtin.command: chkrootkit --quiet
become: yes
tags: never
- name: Run Lynis system audit
ansible.builtin.command: lynis audit system
become: yes
tags: never
- name: Run tiger checks
ansible.builtin.command: /usr/bin/tiger -q
become: yes
tags: never
...