env-ansible/tasks/hardness_check_lynis.yml

9 lines
226 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
ansible.builtin.command: /usr/local/lynis/lynis audit system