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: I619f8142ed1d2c74d7336f7519c0338a139848ee
This commit is contained in:
Jean-Philippe Evrard 2018-07-12 16:44:21 +02:00
parent fd55231fcd
commit a7c78ceb43
1 changed files with 2 additions and 2 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
@ -36,7 +36,7 @@
dest: "{{ haproxy_hatop_download_path }}"
validate_certs: "{{ haproxy_hatop_download_validate_certs }}"
register: fetch_url
until: fetch_url | success
until: fetch_url is success
retries: 3
delay: 10
delegate_to: "{{ (haproxy_hatop_downloader == 'deployment-host') | ternary('localhost', inventory_hostname) }}"