reload systemd after installation

Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
This commit is contained in:
Martin Schurz 2023-11-21 23:59:22 +01:00
parent 0f6b8e4a3a
commit 25acb76c05
2 changed files with 5 additions and 4 deletions

View file

@ -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 }}"

View file

@ -3,6 +3,7 @@
ansible.builtin.package:
name: "{{ auditd_package }}"
state: present
notify: Reload systemd
tags: auditd
- name: Configure auditd | package-08