env-ansible/tasks/hardness_check_lynis.yml
2020-12-28 21:13:54 -06:00

9 lines
210 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
command: /usr/local/lynis/lynis audit system