Use shell so that redirect can occur.
This commit is contained in:
parent
de7b2ea00c
commit
0a33ace221
@ -6,7 +6,7 @@
|
||||
force: yes
|
||||
|
||||
- name: Run Lynis Audit System
|
||||
command: /usr/local/lynis/lynis audit system > "{{ lynis_report }}"
|
||||
shell: /usr/local/lynis/lynis audit system > "{{ lynis_report }}" 2>&1
|
||||
|
||||
- name: Make Lynis Report Readable
|
||||
command: chmod 444 "{{ lynis_report }}"
|
||||
shell: chmod 444 "{{ lynis_report }}"
|
Loading…
x
Reference in New Issue
Block a user