manage_netplan/handlers/main.yml

13 lines
320 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
listen: "netplan-generate"
notify:
- "netplan-apply"
- name: "Apply netplan configuration"
ansible.builtin.command: netplan apply
listen: "netplan-apply"
when: manage_netplan_apply