Skip to content

Commit 505a395

Browse files
committed
Remove auditd conditions
Signed-off-by: Martin Schurz <[email protected]>
1 parent 612c1a4 commit 505a395

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/os_hardening/handlers/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
ignore_errors: "{{ ansible_check_mode }}"
1414
when:
1515
- molecule_yml.driver.name | default() != "docker" # restarting auditd in a container does not work
16-
- not ansible_facts.os_family == 'RedHat' or ansible_facts.distribution == 'AlmaLinux'
16+
- not ansible_facts.os_family == 'RedHat'
1717

1818
- name: Restart auditd via service # noqa command-instead-of-module no-changed-when
1919
ansible.builtin.command:
2020
cmd: service auditd restart # rhel: see: https://access.redhat.com/solutions/2664811
2121
when:
2222
- molecule_yml.driver.name | default() != "docker" # restarting auditd in a container does not work
23-
- ansible_facts.os_family == 'RedHat' and not ansible_facts.distribution == 'AlmaLinux'
23+
- ansible_facts.os_family == 'RedHat'
2424

2525
- name: Remount filesystems
2626
ansible.posix.mount:

0 commit comments

Comments
 (0)