-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes the handler file and set new syntax
- Loading branch information
1 parent
66f5c6b
commit e90c8d5
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
--- | ||
- name: Update-initramfs | ||
command: 'update-initramfs -u' | ||
ansible.legacy.command: 'update-initramfs -u' | ||
|
||
- name: Restart auditd | ||
command: | ||
ansible.legacy.command: | ||
cmd: 'service auditd restart' # rhel: see: https://access.redhat.com/solutions/2664811 | ||
warn: false # sadly 'service' module fails in that case also by using 'use: service' | ||
when: molecule_yml is not defined # restarting auditd in a container does not work | ||
|
||
- name: Reload systemd | ||
systemd: | ||
ansible.builtin.systemd: | ||
daemon_reload: true | ||
|
||
- name: Remount filesystems | ||
mount: | ||
ansible.posix.mount: | ||
path: "{{ item }}" | ||
state: remounted | ||
loop: "{{ mountpoints_changed }}" |