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: I7a5b4cf134a73e9dc6eda08c935696c5b8b8a034
This commit is contained in:
parent
62dfbc77bd
commit
d25f899c43
|
@ -25,7 +25,7 @@
|
|||
state: "restarted"
|
||||
pattern: "apache2"
|
||||
register: apache_restart
|
||||
until: apache_restart|success
|
||||
until: apache_restart is success
|
||||
retries: 5
|
||||
delay: 2
|
||||
|
||||
|
@ -35,6 +35,6 @@
|
|||
state: "restarted"
|
||||
pattern: "nginx"
|
||||
register: nginx_restart
|
||||
until: nginx_restart|success
|
||||
until: nginx_restart is success
|
||||
retries: 5
|
||||
delay: 2
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
update_cache: yes
|
||||
cache_valid_time: "{{ cache_timeout }}"
|
||||
register: install_apt_packages
|
||||
until: install_apt_packages | success
|
||||
until: install_apt_packages is success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items: "{{ zaqar_distro_packages }}"
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
file:
|
||||
path: "{{ zaqar_bin | dirname }}"
|
||||
state: absent
|
||||
when: zaqar_get_venv | changed
|
||||
when: zaqar_get_venv is changed
|
||||
tags:
|
||||
- zaqar-install
|
||||
- zaqar-pip-packages
|
||||
|
@ -78,7 +78,7 @@
|
|||
path: "{{ zaqar_bin | dirname }}"
|
||||
state: directory
|
||||
register: zaqar_venv_dir
|
||||
when: zaqar_get_venv | changed
|
||||
when: zaqar_get_venv is changed
|
||||
tags:
|
||||
- zaqar-install
|
||||
- zaqar-pip-packages
|
||||
|
@ -88,7 +88,7 @@
|
|||
src: "/var/cache/{{ zaqar_venv_download_url | basename }}"
|
||||
dest: "{{ zaqar_bin | dirname }}"
|
||||
copy: "no"
|
||||
when: zaqar_get_venv | changed
|
||||
when: zaqar_get_venv is changed
|
||||
# notify:
|
||||
# - Restart zaqar api
|
||||
tags:
|
||||
|
@ -106,7 +106,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: zaqar_get_venv | failed or zaqar_get_venv | skipped
|
||||
|
@ -132,7 +132,7 @@
|
|||
--no-pip \
|
||||
--no-setuptools \
|
||||
--no-wheel
|
||||
when: zaqar_get_venv | changed
|
||||
when: zaqar_get_venv is changed
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
- zaqar-install
|
||||
|
|
Loading…
Reference in New Issue