don't try to restart audit in check mode
Signed-off-by: Martin Schurz <[email protected]>
This commit is contained in:
1 parent
25acb76c05
commit
54f9ef42a1
2 files changed
+1
-1
No files matched your search
@@ -10,6 +10,7 @@
|
||||
ansible.builtin.systemd:
|
||||
name: auditd.service
|
||||
state: restarted
|
||||
ignore_errors: "{{ ansible_check_mode }}"
|
||||
when:
|
||||
- molecule_yml.driver.name | default() != "docker" # restarting auditd in a container does not work
|
||||
- not ansible_facts.os_family == 'RedHat'
|
||||
|
||||
Reference in new issue
Block a user