manage_netplan/handlers/main.yml

13 lines
332 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"
- name: "Apply netplan configuration"
ansible.builtin.command: netplan apply
listen: "netplan-apply"
changed_when: false
2023-04-11 21:32:34 +00:00
when: manage_netplan_apply