Automatically initialise multiple network interfaces in a virtual machine.
This is intended for use with virtual machines running a standard cloud image where by default only the first NIC is initialised, and you wish to activate additional NICs. All networks must have DHCP enabled.
This is not recommended for use on physical servers, use the network
role instead.
network_cloud_interfaces
: A list of network interfaces to be added, default is to attempt to add all. Existing interfaces will not be modified, even if they are in this list.network_cloud_interface_regex
: A regular expression used to match interfaces to be activated, default.*
. An example use is on Docker servers where you want to ignore virtual interfaces.
- hosts: cloud-instance
roles:
- role: ome.network_cloud_interfaces
network_cloud_interface_regex: '^eth.*'