2020-12-28 20:57:05 -06:00
|
|
|
- name: Install Lynis
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: https://github.com/CISOfy/lynis
|
2020-12-28 20:59:07 -06:00
|
|
|
dest: /usr/local/lynis
|
2020-12-28 20:57:05 -06:00
|
|
|
clone: yes
|
|
|
|
force: yes
|
|
|
|
|
|
|
|
- name: Run Lynis
|
2020-12-28 21:08:40 -06:00
|
|
|
ansible.builtin.command:
|
2020-12-28 21:04:27 -06:00
|
|
|
args:
|
2020-12-28 21:08:40 -06:00
|
|
|
cmd: lynis audit system
|
2020-12-28 20:57:05 -06:00
|
|
|
chdir: /usr/local/lynis/
|