Change shell module to file module.

This commit is contained in:
Hyperling 2021-07-11 11:11:33 -05:00
parent 9640a19cc1
commit 432674a2a0

View File

@ -8,8 +8,14 @@
clone: yes
force: yes
- name: General | Tests | Lynis | Fix Permissions (Looking at you Parrot OS!)
shell: "chown -R root:root {{ lynis_install_dir }}"
- name: General | Tests | Lynis | Ensure Permissions (Looking at you Parrot OS!)
file:
path: "{{ lynis_install_dir }}"
state: directory
mode: '0755'
owner: root
group: root
recurse: yes
- name: General | Tests | Lynis | Run System Audit
shell: "{{ lynis_install_dir }}/lynis audit system --no-colors > {{ lynis_report }} 2>&1"