net interfaces: give the option of giving a list.
This commit is contained in:
parent
07166709d2
commit
1eef42b417
|
@ -27,6 +27,7 @@ sysctl_custom_options: []
|
||||||
|
|
||||||
ubuntu_configure_additional_interfaces: false
|
ubuntu_configure_additional_interfaces: false
|
||||||
ubuntu_configure_additional_int_dhcp_overrides: true
|
ubuntu_configure_additional_int_dhcp_overrides: true
|
||||||
|
ubuntu_configure_additional_ints_list: []
|
||||||
disable_ipv6: false
|
disable_ipv6: false
|
||||||
ipv6_sysctl_value: 1
|
ipv6_sysctl_value: 1
|
||||||
ipv6_sysctl_file: /etc/sysctl.d/10-ipv6-disable.conf
|
ipv6_sysctl_file: /etc/sysctl.d/10-ipv6-disable.conf
|
||||||
|
|
|
@ -28,6 +28,10 @@
|
||||||
- name: network-interfaces | Print the additional interfaces
|
- name: network-interfaces | Print the additional interfaces
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "Interfaces list: {{ new_ints }}"
|
msg: "Interfaces list: {{ new_ints }}"
|
||||||
|
- name: network-interfaces | Override the interfaces list
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
new_ints: "{{ ubuntu_configure_additional_ints_list }}"
|
||||||
|
when: ubuntu_configure_additional_ints_list | length != 0
|
||||||
- name: network-interfaces | Install the network interface file
|
- name: network-interfaces | Install the network interface file
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: netplan-70-ansible.yaml.j2
|
src: netplan-70-ansible.yaml.j2
|
||||||
|
|
Loading…
Reference in New Issue