Change shell module to file module.
This commit is contained in:
parent
9640a19cc1
commit
432674a2a0
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user