Browse Source

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
Jean-Philippe Evrard 9 months ago
parent
commit
a7c78ceb43
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tasks/haproxy_install.yml

+ 2
- 2
tasks/haproxy_install.yml View File

@@ -20,7 +20,7 @@
20 20
     update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
21 21
     cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
22 22
   register: install_packages
23
-  until: install_packages|success
23
+  until: install_packages is success
24 24
   retries: 5
25 25
   delay: 2
26 26
 
@@ -36,7 +36,7 @@
36 36
     dest: "{{ haproxy_hatop_download_path }}"
37 37
     validate_certs: "{{ haproxy_hatop_download_validate_certs }}"
38 38
   register: fetch_url
39
-  until: fetch_url | success
39
+  until: fetch_url  is success
40 40
   retries: 3
41 41
   delay: 10
42 42
   delegate_to: "{{ (haproxy_hatop_downloader == 'deployment-host') | ternary('localhost', inventory_hostname) }}"

Loading…
Cancel
Save