Only use eth1 interface on the controller if it exists
For testing we can use a bridge without any ports.
This commit is contained in:
parent
54c2f06d7a
commit
ce3b303321
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
# Controller interface on all-in-one network.
|
# Controller interface on all-in-one network.
|
||||||
aio_interface: breth1
|
aio_interface: breth1
|
||||||
aio_bridge_ports:
|
# Use eth1 if it exists, otherwise the bridge will have no ports.
|
||||||
- eth1
|
aio_bridge_ports: "{{ ['eth1'] if 'ansible_eth1' in hostvars[inventory_hostname] else [] }}"
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Dummy variable to allow Ansible to accept this file.
|
# Dummy variable to allow Ansible to accept this file.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user