Some non virthosts still have virbr interfaces.

This commit is contained in:
Kevin Fenzi 2016-02-04 22:55:49 +00:00
parent ce25adcfec
commit 635fd73d12

View file

@ -49,7 +49,7 @@
# - restart NetworkManager
- reload NetworkManager-connections
- apply interface-changes
when: (virthost is not defined) and (not item.startswith('tun')) and (hostvars[inventory_hostname]['ansible_' + item]['type'] == 'ether') and (ansible_distribution_major_version|int >=7) and hostvars[inventory_hostname]['ansible_' + item]['active']
when: (virthost is not defined) and (not item.startswith('tun','virbr')) and (hostvars[inventory_hostname]['ansible_' + item]['type'] == 'ether') and (ansible_distribution_major_version|int >=7) and hostvars[inventory_hostname]['ansible_' + item]['active']
tags:
- config
- ifcfg