Fix usage of "|" for tests

With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: Idea3c1336b5dd10bd9dfc075587cc130a0a34449
This commit is contained in:
Jean-Philippe Evrard 2018-07-12 16:44:21 +02:00
parent 3ec29ab919
commit 026c6eb2fd
4 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@
when:
- ansible_pkg_mgr in ['yum', 'dnf']
register: _add_yum_keys
until: _add_yum_keys | success
until: _add_yum_keys is success
retries: 5
delay: 2
@ -36,7 +36,7 @@
when:
- ansible_pkg_mgr in ['yum', 'dnf']
register: install_epel_repo
until: install_epel_repo|success
until: install_epel_repo is success
retries: 5
delay: 2
@ -47,6 +47,6 @@
update_cache: "{{ (ansible_pkg_mgr == 'apt' or ansible_pkg_mgr == 'zypper') | ternary('yes', omit) }}"
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
register: install_packages
until: install_packages | success
until: install_packages is success
retries: 5
delay: 2

View File

@ -106,7 +106,7 @@
--constraint {{ repo_build_release_path }}/requirements_constraints.txt
{{ pip_install_options }}
register: install_packages
until: install_packages | success
until: install_packages is success
retries: 5
delay: 5
rescue:
@ -120,7 +120,7 @@
--constraint {{ repo_build_release_path }}/requirements_constraints.txt
{{ pip_install_options }}
register: install_packages
until: install_packages | success
until: install_packages is success
retries: 5
delay: 5

View File

@ -132,7 +132,7 @@
dest: "/opt/get-pip.py"
force: no
register: _get_pip
until: _get_pip | success
until: _get_pip is success
retries: 10
delay: 5

View File

@ -47,6 +47,6 @@
(item['name'] in slurp_requirements.content | b64decode | splitlines) or
((groups[item['project_group']] is defined) and (groups[item['project_group']] | length > 0))
register: _git_clone
until: _git_clone | success
until: _git_clone is success
delay: 5
retries: 10