Only skip audit restart handler in docker (#637)

Signed-off-by: Nejc Habjan <[email protected]>
This commit is contained in:
Nejc Habjan authored and GitHub committed 2023-02-15 17:58:52 +01:00
1 parent f245030ead
commit 9e4ea20c67
1 file changed
+1 -1
+1 -1
View File
@@ -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: