jinja endif was missing
This commit is contained in:
parent
f5c38406bc
commit
5e10b333bc
|
|
@ -13,11 +13,11 @@
|
||||||
register: netplan_in_use
|
register: netplan_in_use
|
||||||
- name: network-interfaces | Check if additional interfaces have been defined
|
- name: network-interfaces | Check if additional interfaces have been defined
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
net_ints: "{% for i in ansible_interfaces %}{% if i != ansible_lo.device or i != ansible_default_ipv4.interface %}{{ i }}{% if not loop.last %},{% endif %}{% endfor %}"
|
net_ints: "{% for i in ansible_interfaces %}{% if i != ansible_lo.device or i != ansible_default_ipv4.interface %}{{ i }}{% if not loop.last %},{% endif %}{% endif %}{% endfor %}"
|
||||||
when: netplan_in_use.stat.isdir
|
when: netplan_in_use.stat.isdir
|
||||||
- name: network-interfaces | Create a dictionary of additional interfaces
|
- name: network-interfaces | Create a dictionary of additional interfaces
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
new_ints: "[{% for i in ansible_interfaces %}{% if i != ansible_lo.device or i != ansible_default_ipv4.interface %}{{ i }}{% if not loop.last %},{% endif %}{% endfor %}]"
|
new_ints: "[{% for i in ansible_interfaces %}{% if i != ansible_lo.device or i != ansible_default_ipv4.interface %}{{ i }}{% if not loop.last %},{% endif %}{% endif %}{% endfor %}]"
|
||||||
when: net_ints is not defined or net_ints == None or net_ints | length == 0
|
when: net_ints is not defined or net_ints == None or net_ints | length == 0
|
||||||
- name: network-interfaces | Install the network interface file
|
- name: network-interfaces | Install the network interface file
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue