Only skip audit restart handler in docker (#637)
Signed-off-by: Nejc Habjan <[email protected]>
This commit is contained in:
1 parent
f245030ead
commit
9e4ea20c67
1 file changed
+1
-1
@@ -5,7 +5,7 @@
|
||||
- name: Restart auditd # noqa command-instead-of-module
|
||||
ansible.builtin.command:
|
||||
cmd: service auditd restart # rhel: see: https://access.redhat.com/solutions/2664811
|
||||
when: molecule_yml is not defined # restarting auditd in a container does not work
|
||||
when: molecule_yml.driver.name | default() != "docker" # restarting auditd in a container does not work
|
||||
|
||||
- name: Reload systemd
|
||||
ansible.builtin.systemd:
|
||||
|
||||
Reference in new issue
Block a user