dresden-weekly / ansible-network-interfaces

Ansible roles to manage Ubuntu network interface configuration
MIT License
86 stars 62 forks source link

tunnel interface support #50

Open nnovikov opened 7 years ago

nnovikov commented 7 years ago

Do you have tunnel interfaces support?

dekhtyarev commented 7 years ago

work fine with some config:

network_interfaces:
  - id: tunl0-1
    device: tunl0
    description: Tunnel IP
    auto: true
    family: inet
    method: static
    address: 10.XXX.Y.Z1
    netmask: 255.255.255.255

  - id: tunl0-2
    device: tunl0
    description: Tunnel IP
    auto: true
    family: inet
    method: static
    address: 10.XXX.Y.Z2
    netmask: 255.255.255.255

  - device: "{{ ansible_default_ipv4.interface }}"
    description: default interface for OS
    auto: true
    family: inet
    method: dhcp