* Update main.yml fixes the handler file and set new syntax Signed-off-by: Jacob Sievert <[email protected]> * changes command module from legacy to builtin. Signed-off-by: Jacob Sievert <[email protected]> Signed-off-by: Jacob Sievert <[email protected]>
19 lines
514 B
YAML
19 lines
514 B
YAML
---
|
|
- name: Update-initramfs
|
|
ansible.builtin.command: 'update-initramfs -u'
|
|
|
|
- name: Restart auditd
|
|
ansible.builtin.command:
|
|
cmd: 'service auditd restart' # rhel: see: https://access.redhat.com/solutions/2664811
|
|
when: molecule_yml is not defined # restarting auditd in a container does not work
|
|
|
|
- name: Reload systemd
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
|
|
- name: Remount filesystems
|
|
ansible.posix.mount:
|
|
path: "{{ item }}"
|
|
state: remounted
|
|
loop: "{{ mountpoints_changed }}"
|