net interfaces: give the option of giving a list.

This commit is contained in:
Andrea Dell'Amico 2023-12-05 17:59:08 +01:00
parent 07166709d2
commit 1eef42b417
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,7 @@ sysctl_custom_options: []
ubuntu_configure_additional_interfaces: false
ubuntu_configure_additional_int_dhcp_overrides: true
ubuntu_configure_additional_ints_list: []
disable_ipv6: false
ipv6_sysctl_value: 1
ipv6_sysctl_file: /etc/sysctl.d/10-ipv6-disable.conf

View File

@ -28,6 +28,10 @@
- name: network-interfaces | Print the additional interfaces
ansible.builtin.debug:
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
ansible.builtin.template:
src: netplan-70-ansible.yaml.j2