Try to use command instead of shell.
This commit is contained in:
parent
c8407a4b49
commit
486fd3b4d7
@ -6,6 +6,7 @@
|
|||||||
force: yes
|
force: yes
|
||||||
|
|
||||||
- name: Run Lynis
|
- name: Run Lynis
|
||||||
ansible.builtin.shell: lynis audit system
|
ansible.builtin.command:
|
||||||
args:
|
args:
|
||||||
|
cmd: lynis audit system
|
||||||
chdir: /usr/local/lynis/
|
chdir: /usr/local/lynis/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user