New implementation of network interfaces

Combine interfaces and network_ether_interfaces into one common
variable network_interfaces. Provisioning uses format:

network_interfaces:
  - device: device name eg. vio0 or eth0
    vlan: vlan id for this interface
    mac: mac address for interface (optional)

Additionally network role will use more settings to configure
interface.
This commit is contained in:
Timo Makinen 2020-08-27 17:42:07 +00:00
parent 78c9a2eaf1
commit c80eca3d85
11 changed files with 46 additions and 19 deletions

View file

@ -7,7 +7,7 @@
mode: 0600
owner: root
group: "{{ ansible_wheel }}"
with_items: "{{ network_ether_interfaces }}"
with_items: "{{ network_interfaces }}"
notify: restart network
- block: