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:
Martin Mágr
2017-06-09 11:38:24 +02:00
parent 80aaa76158
commit 70f3ba101b

View File

@@ -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