ansible-role-basic-system-s.../templates/70-ansible.yaml.j2

15 lines
332 B
Django/Jinja

network:
version: 2
ethernets:
{% for int in ubuntu_netplan_interfaces %}
{{ int.name }}:
dhcp4: {{ int.dhcp4 }}
mtu: {{ int.mtu }}
{% if int.dhcp_overrides | default(true) %}
dhcp4-overrides:
use-dns: false
use-routes: false
{% endif %}
{% endfor %}