22 lines
624 B
YAML
Raw Normal View History

---
# Lynis hardness check.
2021-02-02 21:28:17 -06:00
- name: General | Tests | Lynis | Install
2021-01-31 17:17:14 -06:00
git:
repo: https://github.com/CISOfy/lynis
dest: "{{ lynis_install_dir }}"
clone: yes
force: yes
- name: General | Tests | Lynis | Fix Permissions (Looking at you Parrot OS!)
shell: "chown -R root:root {{ lynis_install_dir }}"
2021-02-02 21:28:17 -06:00
- name: General | Tests | Lynis | Run System Audit
shell: "{{ lynis_install_dir }}/lynis audit system --no-colors > {{ lynis_report }} 2>&1"
args:
executable: "{{ bash_exec.stdout }}"
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 }}"
2021-02-06 07:37:31 -06:00
mode: '0777'