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: I7bba2e6e09368361c7c9d2b86084728530780920
This commit is contained in:
Jean-Philippe Evrard 2018-07-12 16:44:21 +02:00
parent 23aee0d1a1
commit 1c4bd5ffed
1 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@
update_cache: "{{ (ansible_pkg_mgr == 'apt') | 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
@ -31,7 +31,7 @@
update_cache: "{{ (ansible_pkg_mgr == 'apt') | 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
when:
@ -46,7 +46,7 @@
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
{{ pip_install_options | default('') }}
register: install_packages
until: install_packages|success
until: install_packages is success
retries: 5
delay: 2
@ -69,7 +69,7 @@
file:
path: "{{ molteniron_bin | dirname }}"
state: absent
when: molteniron_get_venv | changed
when: molteniron_get_venv is changed
- name: Create molteniron venv dir
file:
@ -85,7 +85,7 @@
copy: "no"
when:
- not molteniron_developer_mode | bool
- molteniron_get_venv | changed or molteniron_venv_dir | changed
- molteniron_get_venv | changed or molteniron_venv_dir is changed
- name: Install pip packages
pip:
@ -98,7 +98,7 @@
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
{{ pip_install_options | default('') }}
register: install_packages
until: install_packages|success
until: install_packages is success
retries: 5
delay: 2
when: molteniron_developer_mode | bool
@ -121,7 +121,7 @@
--no-wheel
when:
- not molteniron_developer_mode | bool
- molteniron_get_venv | changed
- molteniron_get_venv is changed
tags:
- skip_ansible_lint