2019-08-25 02:07:11 +00:00
|
|
|
---
|
2022-08-31 17:39:41 +00:00
|
|
|
- name: Remove default netplan configuration
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ network_netplan_default_config_path }}"
|
|
|
|
state: "{{ network_netplan_default_config_state | default('absent') }}"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify: netplan apply
|
|
|
|
|
2022-08-31 04:27:03 +00:00
|
|
|
- name: Configure netplan
|
2022-08-31 17:39:41 +00:00
|
|
|
ansible.builtin.template:
|
|
|
|
dest: "{{ network_netplan_config_path }}"
|
|
|
|
src: netplan.yaml.j2
|
2022-08-31 04:27:03 +00:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
2019-08-25 02:07:11 +00:00
|
|
|
notify: netplan apply
|