Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
664 B

  1. # This file describes the network interfaces available on your system
  2. # and how to activate them. For more information, see interfaces(5).
  3. source /etc/network/interfaces.d/*
  4. # The loopback network interface
  5. auto lo
  6. iface lo inet loopback
  7. # The primary network interface
  8. auto br0
  9. iface br0 inet manual
  10. bridge_ports {{ ansible_default_ipv4.alias }}.{{ virtual_machine_vlan }}
  11. bridge_fd 1
  12. auto {{ ansible_default_ipv4.alias }}
  13. iface {{ ansible_default_ipv4.alias }} inet static
  14. address {{ ansible_default_ipv4.address }}
  15. gateway {{ hostvars | ip_from_inventory('management_gateway') }}
  16. netmask 255.255.255.0
  17. vlan-raw-device {{ ansible_default_ipv4.alias }}