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: I09b6bf32330a69b815544d7ff7e4c6e459617b54
This commit is contained in:
parent
b9ad59e4bc
commit
b7c9de76b7
@ -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
|
||||||
|
|
||||||
@ -52,7 +52,7 @@
|
|||||||
file:
|
file:
|
||||||
path: "{{ ironic_bin | dirname }}"
|
path: "{{ ironic_bin | dirname }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: ironic_get_venv | changed
|
when: ironic_get_venv is changed
|
||||||
|
|
||||||
- name: Create ironic venv dir
|
- name: Create ironic venv dir
|
||||||
file:
|
file:
|
||||||
@ -60,14 +60,14 @@
|
|||||||
state: directory
|
state: directory
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
register: ironic_venv_dir
|
register: ironic_venv_dir
|
||||||
when: ironic_get_venv | changed
|
when: ironic_get_venv is changed
|
||||||
|
|
||||||
- name: Unarchive pre-built venv
|
- name: Unarchive pre-built venv
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "/var/cache/{{ ironic_venv_download_url | basename }}"
|
src: "/var/cache/{{ ironic_venv_download_url | basename }}"
|
||||||
dest: "{{ ironic_bin | dirname }}"
|
dest: "{{ ironic_bin | dirname }}"
|
||||||
copy: "no"
|
copy: "no"
|
||||||
when: ironic_get_venv | changed
|
when: ironic_get_venv is changed
|
||||||
notify: Restart ironic services
|
notify: Restart ironic services
|
||||||
|
|
||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
@ -81,7 +81,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: ironic_get_venv | failed or ironic_get_venv | skipped
|
when: ironic_get_venv | failed or ironic_get_venv | skipped
|
||||||
@ -93,7 +93,7 @@
|
|||||||
state: "absent"
|
state: "absent"
|
||||||
when:
|
when:
|
||||||
- ansible_pkg_mgr in ['yum', 'zypper']
|
- ansible_pkg_mgr in ['yum', 'zypper']
|
||||||
- ironic_get_venv | changed
|
- ironic_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
|
||||||
@ -111,7 +111,7 @@
|
|||||||
--no-pip \
|
--no-pip \
|
||||||
--no-setuptools \
|
--no-setuptools \
|
||||||
--no-wheel
|
--no-wheel
|
||||||
when: ironic_get_venv | changed
|
when: ironic_get_venv is changed
|
||||||
tags:
|
tags:
|
||||||
- skip_ansible_lint
|
- skip_ansible_lint
|
||||||
|
|
||||||
|
@ -34,7 +34,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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user