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: Idea3c1336b5dd10bd9dfc075587cc130a0a34449
Jean-Philippe Evrard 9 months ago
parent
commit
026c6eb2fd

+ 3
- 3
tasks/repo_build_install.yml View File

@@ -20,7 +20,7 @@
20 20
   when:
21 21
     - ansible_pkg_mgr in ['yum', 'dnf']
22 22
   register: _add_yum_keys
23
-  until: _add_yum_keys | success
23
+  until: _add_yum_keys  is success
24 24
   retries: 5
25 25
   delay: 2
26 26
 
@@ -36,7 +36,7 @@
36 36
   when:
37 37
     - ansible_pkg_mgr in ['yum', 'dnf']
38 38
   register: install_epel_repo
39
-  until: install_epel_repo|success
39
+  until: install_epel_repo is success
40 40
   retries: 5
41 41
   delay: 2
42 42
 
@@ -47,6 +47,6 @@
47 47
     update_cache: "{{ (ansible_pkg_mgr == 'apt' or ansible_pkg_mgr == 'zypper') | ternary('yes', omit) }}"
48 48
     cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
49 49
   register: install_packages
50
-  until: install_packages | success
50
+  until: install_packages  is success
51 51
   retries: 5
52 52
   delay: 2

+ 2
- 2
tasks/repo_build_prepare.yml View File

@@ -106,7 +106,7 @@
106 106
           --constraint {{ repo_build_release_path }}/requirements_constraints.txt
107 107
           {{ pip_install_options }}
108 108
       register: install_packages
109
-      until: install_packages | success
109
+      until: install_packages  is success
110 110
       retries: 5
111 111
       delay: 5
112 112
   rescue:
@@ -120,7 +120,7 @@
120 120
           --constraint {{ repo_build_release_path }}/requirements_constraints.txt
121 121
           {{ pip_install_options }}
122 122
       register: install_packages
123
-      until: install_packages | success
123
+      until: install_packages  is success
124 124
       retries: 5
125 125
       delay: 5
126 126
 

+ 1
- 1
tasks/repo_build_wheels.yml View File

@@ -132,7 +132,7 @@
132 132
     dest: "/opt/get-pip.py"
133 133
     force: no
134 134
   register: _get_pip
135
-  until: _get_pip | success
135
+  until: _get_pip  is success
136 136
   retries: 10
137 137
   delay: 5
138 138
 

+ 1
- 1
tasks/repo_clone_git.yml View File

@@ -47,6 +47,6 @@
47 47
     (item['name'] in slurp_requirements.content | b64decode | splitlines) or
48 48
     ((groups[item['project_group']] is defined) and (groups[item['project_group']] | length > 0))
49 49
   register: _git_clone
50
-  until: _git_clone | success
50
+  until: _git_clone  is success
51 51
   delay: 5
52 52
   retries: 10

Loading…
Cancel
Save