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: I77c037ec01e192ec0723050c05e296d4ccbfb79e
This commit is contained in:
parent
4c840ae84c
commit
cad8710a8d
|
@ -35,9 +35,9 @@
|
|||
search_regex: "OpenSSH"
|
||||
host: "{{ ansible_host }}"
|
||||
delegate_to: "{{ physical_host }}"
|
||||
when: container_config is defined and container_config | changed
|
||||
when: container_config is defined and container_config is changed
|
||||
register: ssh_wait_check
|
||||
until: ssh_wait_check | success
|
||||
until: ssh_wait_check is success
|
||||
retries: 3
|
||||
tags:
|
||||
- ssh-wait
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
with_dict: "{{ cloudkitty_services }}"
|
||||
when: inventory_hostname in groups[item.value.group]
|
||||
register: _stop
|
||||
until: _stop | success
|
||||
until: _stop is success
|
||||
retries: 5
|
||||
delay: 2
|
||||
listen: Restart cloudkitty services
|
||||
|
@ -54,7 +54,7 @@
|
|||
with_dict: "{{ cloudkitty_services }}"
|
||||
when: inventory_hostname in groups[item.value.group]
|
||||
register: _start
|
||||
until: _start | success
|
||||
until: _start is success
|
||||
retries: 5
|
||||
delay: 2
|
||||
listen: Restart cloudkitty services
|
||||
|
|
|
@ -22,7 +22,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
|
||||
|
||||
|
@ -63,7 +63,7 @@
|
|||
file:
|
||||
path: "{{ cloudkitty_bin | dirname }}"
|
||||
state: absent
|
||||
when: cloudkitty_get_venv | changed
|
||||
when: cloudkitty_get_venv is changed
|
||||
tags:
|
||||
- cloudkitty-install
|
||||
- cloudkitty-pip-packages
|
||||
|
@ -73,7 +73,7 @@
|
|||
path: "{{ cloudkitty_bin | dirname }}"
|
||||
state: directory
|
||||
register: cloudkitty_venv_dir
|
||||
when: cloudkitty_get_venv | changed
|
||||
when: cloudkitty_get_venv is changed
|
||||
tags:
|
||||
- cloudkitty-install
|
||||
- cloudkitty-pip-packages
|
||||
|
@ -83,7 +83,7 @@
|
|||
src: "/var/cache/{{ cloudkitty_venv_download_url | basename }}"
|
||||
dest: "{{ cloudkitty_bin | dirname }}"
|
||||
copy: "no"
|
||||
when: cloudkitty_get_venv | changed
|
||||
when: cloudkitty_get_venv is changed
|
||||
notify:
|
||||
- Restart cloudkitty services
|
||||
tags:
|
||||
|
@ -101,7 +101,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: cloudkitty_get_venv | failed or cloudkitty_get_venv | skipped
|
||||
|
@ -127,7 +127,7 @@
|
|||
--no-pip \
|
||||
--no-setuptools \
|
||||
--no-wheel
|
||||
when: cloudkitty_get_venv | changed
|
||||
when: cloudkitty_get_venv is changed
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
- cloudkitty-install
|
||||
|
|
Loading…
Reference in New Issue