Updates handlers for new ansible syntax and deprecated options for legacy commands (#602)
* 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]>
This commit is contained in:
1 parent
66f5c6b131
commit
ade6deeba2
1 file changed
+4
-5
@@ -1,19 +1,18 @@
|
||||
---
|
||||
- name: Update-initramfs
|
||||
command: 'update-initramfs -u'
|
||||
ansible.builtin.command: 'update-initramfs -u'
|
||||
|
||||
- name: Restart auditd
|
||||
command:
|
||||
ansible.builtin.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 }}"
|
||||
Reference in new issue
Block a user