manage_netplan/handlers/main.yml

15 lines
364 B
YAML
Raw Normal View History

2023-04-11 21:32:34 +00:00
---
# handlers file for manage_netplan
- name: "Generate netplan configuration"
ansible.builtin.command: netplan generate
2023-04-13 21:03:29 +00:00
changed_when: false
2023-04-11 21:32:34 +00:00
listen: "netplan-generate"
notify:
- "netplan-apply"
- name: "Apply netplan configuration"
ansible.builtin.command: netplan apply
2023-04-13 21:03:29 +00:00
changed_when: false
2023-04-11 21:32:34 +00:00
listen: "netplan-apply"
when: manage_netplan_apply