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: I950916695929d35dbf4606f4ef33f5ae559118c5
Jean-Philippe Evrard 9 months ago
parent
commit
914fbc44cb
4 changed files with 10 additions and 10 deletions
  1. 4
    4
      tasks/install_offline.yml
  2. 3
    3
      tasks/install_online.yml
  3. 2
    2
      tasks/install_source.yml
  4. 1
    1
      tasks/pre_install.yml

+ 4
- 4
tasks/install_offline.yml View File

@@ -22,7 +22,7 @@
22 22
         force: "yes"
23 23
         validate_certs: "{{ pip_validate_certs }}"
24 24
       register: get_pip_local
25
-      until: get_pip_local | success
25
+      until: get_pip_local  is success
26 26
       retries: 5
27 27
       delay: 2
28 28
       run_once: yes
@@ -40,9 +40,9 @@
40 40
         dest: "/tmp/get-pip.py"
41 41
         force: "yes"
42 42
         validate_certs: "{{ pip_validate_certs }}"
43
-      when: get_pip_local | failed
43
+      when: get_pip_local  is failed
44 44
       register: get_pip_local_fallback
45
-      until: get_pip_local_fallback | success
45
+      until: get_pip_local_fallback  is success
46 46
       retries: 5
47 47
       delay: 2
48 48
       run_once: yes
@@ -73,7 +73,7 @@
73 73
                    {{ pip_packages | map('quote') | join (' ') }}
74 74
   changed_when: pip_local_cache.stdout.find('Successfully downloaded') != -1
75 75
   register: pip_local_cache
76
-  until: pip_local_cache | success
76
+  until: pip_local_cache  is success
77 77
   retries: 3
78 78
   delay: 2
79 79
   notify:

+ 3
- 3
tasks/install_online.yml View File

@@ -21,7 +21,7 @@
21 21
         force: "{{ pip_get_pip_force | bool }}"
22 22
         validate_certs: "{{ pip_validate_certs }}"
23 23
       register: get_pip
24
-      until: get_pip | success
24
+      until: get_pip  is success
25 25
       retries: 5
26 26
       delay: 2
27 27
       tags:
@@ -34,9 +34,9 @@
34 34
         dest: "/opt/get-pip.py"
35 35
         force: "{{ pip_get_pip_force | bool }}"
36 36
         validate_certs: "{{ pip_validate_certs }}"
37
-      when: get_pip | failed
37
+      when: get_pip  is failed
38 38
       register: get_pip_fallback
39
-      until: get_pip_fallback | success
39
+      until: get_pip_fallback  is success
40 40
       retries: 5
41 41
       delay: 2
42 42
       tags:

+ 2
- 2
tasks/install_source.yml View File

@@ -23,7 +23,7 @@
23 23
                                {{ pip_packages | map('quote') | join (' ') }}
24 24
       changed_when: pip_install.stdout.find('Successfully installed') != -1
25 25
       register: pip_install
26
-      until: pip_install | success
26
+      until: pip_install  is success
27 27
       retries: 3
28 28
       delay: 2
29 29
 
@@ -38,6 +38,6 @@
38 38
                                {{ pip_packages | map('quote') | join (' ') }}
39 39
       changed_when: pip_install_fall_back.stdout.find('Successfully installed') != -1
40 40
       register: pip_install_fall_back
41
-      until: pip_install_fall_back | success
41
+      until: pip_install_fall_back  is success
42 42
       retries: 3
43 43
       delay: 2

+ 1
- 1
tasks/pre_install.yml View File

@@ -18,6 +18,6 @@
18 18
     name: "{{ pip_install_distro_packages }}"
19 19
     state: "{{ pip_install_package_state }}"
20 20
   register: install_packages
21
-  until: install_packages|success
21
+  until: install_packages is success
22 22
   retries: 5
23 23
   delay: 2

Loading…
Cancel
Save