env-ansible/tasks/hardness_check_lynis.yml
2020-12-28 20:57:05 -06:00

12 lines
241 B
YAML

- 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