env-ansible/tasks/hardness_check_lynis.yml

13 lines
256 B
YAML
Raw Normal View History

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