End script with a Lynis hardness check.

This commit is contained in:
Hyperling 2020-12-28 20:57:05 -06:00
parent 46c252757e
commit 15a9bd392f
2 changed files with 19 additions and 1 deletions

View File

@ -3,7 +3,6 @@
# Everything # Everything
- hosts: all - hosts: all
connection: local
become: true become: true
pre_tasks: pre_tasks:
@ -23,3 +22,11 @@
tasks: tasks:
- include: tasks/flatpaks.yml - include: tasks/flatpaks.yml
# Display hardness checks
- hosts: all
become: true
tasks:
- include: tasks/hardness_check_lynis.yml

View File

@ -0,0 +1,11 @@
- name: Install Lynis
ansible.builtin.git:
repo: https://github.com/CISOfy/lynis
dest: /usr/local/
clone: yes
force: yes
- name: Run Lynis
ansible.builtin.shell:
chdir: /usr/local/lynis/
cmd: lynis audit system