Fix conditional in environment/setup role
Current conditional does not work with Ansible 2.3 Closes-bug: #1701006 Change-Id: Ic86fb5f86fb5db8a721859e5ec85e8b569f17550
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# If virtualport_type is defined for any networks, include OVS dependencies
|
||||
- when: "{{ networks|selectattr('virtualport_type', 'defined')|map(attribute='name')|list|length is greaterthan 0}}"
|
||||
- when: networks|selectattr('virtualport_type', 'defined')|map(attribute='name')|list|length > 0
|
||||
block:
|
||||
|
||||
# Install OVS dependencies
|
||||
@@ -124,4 +124,3 @@
|
||||
path: "{{ working_dir }}"
|
||||
state: directory
|
||||
become: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user