manage_netplan/tasks/configure.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

16 lines
412 B
YAML

---
# task/configure file for manage_netplan
- name: "Copy netplan configuration template into {{ manage_netplan_config_file }}"
ansible.builtin.template:
src: etc_netplan.yaml.j2
dest: "{{ manage_netplan_config_file }}"
mode: '0644'
owner: root
group: root
backup: true
when: manage_netplan_configuration != []
become: true
notify:
- "netplan-generate"
- "netplan-apply"