Modify rpm_repo_url condition 02/71302/2
authorManuel Buil <mbuil@suse.com>
Wed, 25 Apr 2018 10:40:34 +0000 (12:40 +0200)
committerManuel Buil <mbuil@suse.com>
Wed, 25 Apr 2018 16:38:18 +0000 (18:38 +0200)
commit9d5951c39da7722c71632a10ec53e7ab93b8ac9b
tree56c7193e0edeb92dd83dfce712d2a1a298a73681
parent2131cb7a09eee561783991218abbaa6e8c26cb25
Modify rpm_repo_url condition

So far, if odl_version was not defined, we would use the latest release.
Unfortunately, ansible 'lookup' will return an empty string if the
variable does not exist and thus odl_version will always be defined:

https://github.com/ansible/ansible/issues/17329

We use ansible 'lookup' in xci to collect the values from env variables

To overcome this, we will allow a new value for odl_version in XCI:
"latest_release". This patch adapts to that new possible value

Change-Id: Ie4d76ed576ddeded130a863f847cd51cb7491456
Signed-off-by: Manuel Buil <mbuil@suse.com>
tasks/add_odl_zypper_repo.yml
vars/main.yml