End script with a Lynis hardness check.
This commit is contained in:
11
tasks/hardness_check_lynis.yml
Normal file
11
tasks/hardness_check_lynis.yml
Normal 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
|
Reference in New Issue
Block a user