tweak base role interfaces for docker networks
This commit is contained in:
parent
d45d0e923e
commit
173902e4fc
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
||||||
# - restart NetworkManager
|
# - restart NetworkManager
|
||||||
- reload NetworkManager-connections
|
- reload NetworkManager-connections
|
||||||
- apply interface-changes
|
- apply interface-changes
|
||||||
when: (virthost is not defined) and (not item.startswith('tun')) and (not item.startswith('virbr')) and (not item.startswith('vnet')) and (hostvars[inventory_hostname]['ansible_' + item.replace('-','_')]['type'] == 'ether') and (ansible_distribution_major_version|int >=7) and hostvars[inventory_hostname]['ansible_' + item.replace('-','_')]['active'] and nmclitest|success and ( not ansible_ifcfg_blacklist ) and ( ansible_ifcfg_whitelist is not defined or item in ansible_ifcfg_whitelist )
|
when: (virthost is not defined) and (item.startswith(('eth','br'))) and (hostvars[inventory_hostname]['ansible_' + item.replace('-','_')]['type'] == 'ether') and (ansible_distribution_major_version|int >=7) and hostvars[inventory_hostname]['ansible_' + item.replace('-','_')]['active'] and nmclitest|success and ( not ansible_ifcfg_blacklist ) and ( ansible_ifcfg_whitelist is not defined or item in ansible_ifcfg_whitelist )
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- ifcfg
|
- ifcfg
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue