idempotence on handlers
This commit is contained in:
parent
de77d006d5
commit
1fc0ea0a7e
@ -2,11 +2,13 @@
|
|||||||
# handlers file for manage_netplan
|
# handlers file for manage_netplan
|
||||||
- name: "Generate netplan configuration"
|
- name: "Generate netplan configuration"
|
||||||
ansible.builtin.command: netplan generate
|
ansible.builtin.command: netplan generate
|
||||||
|
changed_when: false
|
||||||
listen: "netplan-generate"
|
listen: "netplan-generate"
|
||||||
notify:
|
notify:
|
||||||
- "netplan-apply"
|
- "netplan-apply"
|
||||||
|
|
||||||
- name: "Apply netplan configuration"
|
- name: "Apply netplan configuration"
|
||||||
ansible.builtin.command: netplan apply
|
ansible.builtin.command: netplan apply
|
||||||
|
changed_when: false
|
||||||
listen: "netplan-apply"
|
listen: "netplan-apply"
|
||||||
when: manage_netplan_apply
|
when: manage_netplan_apply
|
||||||
|
Loading…
Reference in New Issue
Block a user