manage_netplan/handlers/main.yml
Bertrand Lanson 3967974270
Some checks failed
test / Linting (push) Failing after 10s
test / Molecule tests (default, debian11) (push) Has been skipped
test / Molecule tests (default, debian12) (push) Has been skipped
test / Molecule tests (default, ubuntu2004) (push) Has been skipped
test / Molecule tests (default, ubuntu2204) (push) Has been skipped
test / Molecule tests (with_custom_config, debian11) (push) Has been skipped
test / Molecule tests (with_custom_config, debian12) (push) Has been skipped
test / Molecule tests (with_custom_config, ubuntu2004) (push) Has been skipped
test / Molecule tests (with_custom_config, ubuntu2204) (push) Has been skipped
feat: add vagrant tests for later, add become: true to some tasks to not rely on ansible.cfg
2023-11-29 22:49:57 +01:00

15 lines
362 B
YAML

---
# handlers file for manage_netplan
- name: "Generate netplan configuration"
ansible.builtin.command: netplan generate
changed_when: false
become: true
listen: "netplan-generate"
- name: "Apply netplan configuration"
ansible.builtin.command: netplan apply
listen: "netplan-apply"
changed_when: false
when: manage_netplan_apply
become: true