Skip to content

Commit

Permalink
Merge pull request #802 from konstruktoid/issue22171
Browse files Browse the repository at this point in the history
add initscripts for service restarts
  • Loading branch information
konstruktoid authored Dec 7, 2024
2 parents ef96482 + 22bdeff commit 9045255
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
when:
- ansible_os_family == "Debian"
- ansible_virtualization_type not in ["container", "docker", "podman"]
tags:
- CCE-80872-5

# https://github.com/ansible/ansible/issues/22171
- name: Restart RedHat auditd # noqa command-instead-of-module
Expand All @@ -20,8 +18,6 @@
when:
- ansible_os_family == "RedHat"
- ansible_virtualization_type not in ["container", "docker", "podman"]
tags:
- CCE-80872-5

- name: Generate auditd rules
become: true
Expand Down
7 changes: 7 additions & 0 deletions tasks/auditd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
- name: Configure auditd
become: true
block:
- name: Install initscripts
ansible.builtin.package:
name: initscripts
state: present
when:
- ansible_os_family == "RedHat"

- name: Configure Debian auditd GRUB cmdline
ansible.builtin.lineinfile:
line: GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX {{ grub_audit_cmdline }} {{ grub_audit_backlog_cmdline }}"
Expand Down

0 comments on commit 9045255

Please sign in to comment.