2021-01-31 17:21:39 -06:00
|
|
|
---
|
2021-02-03 21:17:48 -06:00
|
|
|
# Lynis hardness check.
|
2021-01-31 17:21:39 -06:00
|
|
|
|
2021-02-02 21:28:17 -06:00
|
|
|
- name: General | Tests | Lynis | Install
|
2021-01-31 17:17:14 -06:00
|
|
|
git:
|
2020-12-28 20:57:05 -06:00
|
|
|
repo: https://github.com/CISOfy/lynis
|
2020-12-28 21:32:28 -06:00
|
|
|
dest: "{{ lynis_install_dir }}"
|
2020-12-28 20:57:05 -06:00
|
|
|
clone: yes
|
|
|
|
force: yes
|
|
|
|
|
2021-02-02 21:28:17 -06:00
|
|
|
- name: General | Tests | Lynis | Run System Audit
|
2021-02-06 07:27:57 -06:00
|
|
|
shell: "{{ lynis_install_dir }}/lynis audit system --no-colors > {{ lynis_report }} 2>&1"
|
|
|
|
args:
|
|
|
|
executable: "{{ bash_exec.stdout }}"
|
2020-12-28 21:19:01 -06:00
|
|
|
|
2021-02-02 21:28:17 -06:00
|
|
|
- name: General | Tests | Lynis | Make Report Readable
|
2021-01-31 17:17:14 -06:00
|
|
|
file:
|
2021-01-31 13:55:18 -06:00
|
|
|
path: "{{ lynis_report }}"
|
|
|
|
mode: '0444'
|