Update handlers
This commit is contained in:
parent
8b6d6da294
commit
34b8bb07f9
@ -4,4 +4,24 @@
|
||||
ansible.builtin.package_facts:
|
||||
- name: 'ensure_podman.service_facts'
|
||||
ansible.builtin.service_facts:
|
||||
|
||||
- name: 'ensure_podman.service_reload'
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- ansible_service_mgr == 'systemd'
|
||||
- ensure_podman is defined
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: 'yes'
|
||||
- name: 'ensure_podman.services'
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- ensure_podman is defined
|
||||
- ensure_podman.service_list is defined
|
||||
- ensure_podman.service_list is iterable
|
||||
- item.state == 'started'
|
||||
ansible.builtin.service:
|
||||
enabled: '{{ item.enabled }}'
|
||||
name: '{{ item.name }}'
|
||||
state: 'restarted'
|
||||
loop: '{{ ensure_podman.service_list }}'
|
||||
loop_control:
|
||||
label: '{{ item.name }} will be restarted'
|
||||
|
Loading…
x
Reference in New Issue
Block a user