diff options
author | Kevin Fenzi <kevin@scrye.com> | 2016-02-05 20:33:57 +0000 |
---|---|---|
committer | Kevin Fenzi <kevin@scrye.com> | 2016-02-05 20:33:57 +0000 |
commit | a06f96f81a20ce98eafca11362a08ea464c26e5d (patch) | |
tree | 8bcd04bf6d5b01d5521abcb9b4361af33668a3bd | |
parent | f0374f52516d11ef719134a6926557c3703039e4 (diff) | |
download | ansible-a06f96f81a20ce98eafca11362a08ea464c26e5d.tar.gz ansible-a06f96f81a20ce98eafca11362a08ea464c26e5d.tar.xz ansible-a06f96f81a20ce98eafca11362a08ea464c26e5d.zip |
Pesky syntax. Try this.
-rw-r--r-- | roles/base/tasks/main.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 57b3e0a41..353d0c842 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -29,7 +29,7 @@ ini_file: dest=/etc/NetworkManager/NetworkManager.conf section=main option=dns value=none notify: - restart NetworkManager - when: ansible_distribution_major_version|int >=7 and nmclitest|success and ( not ansible_ifcfg_blacklist ) + when: ansible_distribution_major_version|int >=7 and nmclitest|success and ( ansible_ifcfg_blacklist == 'false' ) tags: - config - resolvconf @@ -42,7 +42,7 @@ changed_when: false failed_when: 'if_uuid.stdout == ""' always_run: yes - when: ansible_distribution_major_version|int >=7 and nmclitest|success and ( not ansible_ifcfg_blacklist ) + when: ansible_distribution_major_version|int >=7 and nmclitest|success and ( ansible_ifcfg_blacklist == 'false' ) tags: - config - ifcfg @@ -56,7 +56,7 @@ # - restart NetworkManager - reload NetworkManager-connections - apply interface-changes - 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'] and nmclitest|success and ( not ansible_ifcfg_blacklist ) + 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'] and nmclitest|success and ( ansible_ifcfg_blacklist == 'false' ) tags: - config - ifcfg |