From 6ed4a043068ecd6f09f780cc566b05056df460c0 Mon Sep 17 00:00:00 2001 From: doteast Date: Fri, 5 Feb 2016 18:11:19 +0000 Subject: [PATCH] filter virbr and deal with ansible iface name conv --- roles/base/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 266189d6e1..d1bb2e4418 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -49,7 +49,7 @@ # - restart NetworkManager - reload NetworkManager-connections - apply interface-changes - when: (virthost is not defined) and (not item.startswith('tun') or not item.startswith('virbr') 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')) and (not item.startswith('virbr')) and (hostvars[inventory_hostname]['ansible_' + item.replace('-','_')]['type'] == 'ether') and (ansible_distribution_major_version|int >=7) and hostvars[inventory_hostname]['ansible_' + item.replace('-','_')]['active'] tags: - config - ifcfg