See if this logic works as I want it to.
This commit is contained in:
parent
3315549c66
commit
064680d892
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,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 ansible_ifcfg_blacklist == 'false'
|
||||
when: ansible_distribution_major_version|int >=7 and nmclitest|success and ( not ansible_ifcfg_blacklist)
|
||||
tags:
|
||||
- config
|
||||
- resolvconf
|
||||
|
@ -50,7 +50,7 @@
|
|||
changed_when: false
|
||||
failed_when: 'if_uuid.stdout == ""'
|
||||
always_run: yes
|
||||
when: ansible_distribution_major_version|int >=7 and nmclitest|success and ( ansible_ifcfg_blacklist == 'false' )
|
||||
when: ansible_distribution_major_version|int >=7 and nmclitest|success and ( not ansible_ifcfg_blacklist )
|
||||
tags:
|
||||
- config
|
||||
- ifcfg
|
||||
|
@ -64,7 +64,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 ( ansible_ifcfg_blacklist == 'false' )
|
||||
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 )
|
||||
tags:
|
||||
- config
|
||||
- ifcfg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue