12 lines
246 B
YAML
12 lines
246 B
YAML
- name: Install Lynis
|
|
ansible.builtin.git:
|
|
repo: https://github.com/CISOfy/lynis
|
|
dest: /usr/local/lynis
|
|
clone: yes
|
|
force: yes
|
|
|
|
- name: Run Lynis
|
|
ansible.builtin.shell:
|
|
chdir: /usr/local/lynis/
|
|
cmd: lynis audit system
|