mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
reload systemd after installation
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
This commit is contained in:
parent
0f6b8e4a3a
commit
25acb76c05
2 changed files with 5 additions and 4 deletions
|
@ -2,6 +2,10 @@
|
|||
- name: Update-initramfs # noqa no-changed-when
|
||||
ansible.builtin.command: update-initramfs -u
|
||||
|
||||
- name: Reload systemd
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: Restart auditd via systemd
|
||||
ansible.builtin.systemd:
|
||||
name: auditd.service
|
||||
|
@ -17,10 +21,6 @@
|
|||
- molecule_yml.driver.name | default() != "docker" # restarting auditd in a container does not work
|
||||
- ansible_facts.os_family == 'RedHat'
|
||||
|
||||
- name: Reload systemd
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: Remount filesystems
|
||||
ansible.posix.mount:
|
||||
path: "{{ item }}"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
ansible.builtin.package:
|
||||
name: "{{ auditd_package }}"
|
||||
state: present
|
||||
notify: Reload systemd
|
||||
tags: auditd
|
||||
|
||||
- name: Configure auditd | package-08
|
||||
|
|
Loading…
Reference in a new issue