Skip to content

Commit 6df3acd

Browse files
committed
Install init scripts
Signed-off-by: Martin Schurz <[email protected]>
1 parent 9228db0 commit 6df3acd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

molecule/os_hardening_vm/prepare.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@
5959
- python3-libselinux
6060
when: ansible_facts.distribution == 'Fedora'
6161

62+
- name: Install required tools on AlmaLinux
63+
ansible.builtin.dnf:
64+
name:
65+
- initscripts
66+
when: ansible_facts.distribution == 'AlmaLinux'
67+
6268
- name: Install required tools on Arch
6369
community.general.pacman:
6470
name:

roles/os_hardening/handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
- name: Restart auditd via service # noqa command-instead-of-module no-changed-when
1919
ansible.builtin.command:
20-
cmd: /usr/sbin/service auditd restart # rhel: see: https://access.redhat.com/solutions/2664811
20+
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
2323
- ansible_facts.os_family == 'RedHat'

0 commit comments

Comments
 (0)