don't try to restart audit in check mode

Signed-off-by: Martin Schurz <[email protected]>
This commit is contained in:
Martin Schurz committed 2023-11-22 00:45:38 +01:00
1 parent 25acb76c05
commit 54f9ef42a1
2 files changed
+1 -1

No files matched your search

+1
View File
@@ -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'