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: If1ef0d110f77a62780fdbff398b1049ce2c61eff
This commit is contained in:
parent
3fbe123709
commit
caccaba484
|
@ -20,7 +20,7 @@
|
||||||
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
|
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
|
||||||
register: install_packages
|
register: install_packages
|
||||||
until: install_packages|success
|
until: install_packages is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||||
{{ pip_install_options | default('') }}
|
{{ pip_install_options | default('') }}
|
||||||
register: install_packages
|
register: install_packages
|
||||||
until: install_packages|success
|
until: install_packages is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
||||||
|
@ -65,20 +65,20 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ rally_bin | dirname }}"
|
path: "{{ rally_bin | dirname }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: rally_get_venv | changed
|
when: rally_get_venv is changed
|
||||||
|
|
||||||
- name: Create rally venv dir
|
- name: Create rally venv dir
|
||||||
file:
|
file:
|
||||||
path: "{{ rally_bin | dirname }}"
|
path: "{{ rally_bin | dirname }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: rally_get_venv | changed
|
when: rally_get_venv is changed
|
||||||
|
|
||||||
- name: Unarchive pre-built venv
|
- name: Unarchive pre-built venv
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "/var/cache/{{ rally_venv_download_url | basename }}"
|
src: "/var/cache/{{ rally_venv_download_url | basename }}"
|
||||||
dest: "{{ rally_bin | dirname }}"
|
dest: "{{ rally_bin | dirname }}"
|
||||||
copy: "no"
|
copy: "no"
|
||||||
when: rally_get_venv | changed
|
when: rally_get_venv is changed
|
||||||
|
|
||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
pip:
|
pip:
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||||
{{ pip_install_options | default('') }}
|
{{ pip_install_options | default('') }}
|
||||||
register: install_packages
|
register: install_packages
|
||||||
until: install_packages|success
|
until: install_packages is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
when: rally_get_venv | failed or rally_get_venv | skipped
|
when: rally_get_venv | failed or rally_get_venv | skipped
|
||||||
|
@ -102,7 +102,7 @@
|
||||||
state: "absent"
|
state: "absent"
|
||||||
when:
|
when:
|
||||||
- ansible_pkg_mgr == 'yum'
|
- ansible_pkg_mgr == 'yum'
|
||||||
- rally_get_venv | changed
|
- rally_get_venv is changed
|
||||||
|
|
||||||
# NOTE(odyssey4me):
|
# NOTE(odyssey4me):
|
||||||
# We reinitialize the venv to ensure that the right
|
# We reinitialize the venv to ensure that the right
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
--no-pip \
|
--no-pip \
|
||||||
--no-setuptools \
|
--no-setuptools \
|
||||||
--no-wheel
|
--no-wheel
|
||||||
when: rally_get_venv | changed
|
when: rally_get_venv is changed
|
||||||
tags:
|
tags:
|
||||||
- skip_ansible_lint
|
- skip_ansible_lint
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue