Browse Source

tasks: main: Fix conditional for PIP script

The conditional must search the 'stdout' item to find the string we
are looking for.

Change-Id: I469116ffbc11160122879b6f60800c63908fec0f
Markos Chandras 11 months ago
parent
commit
fe5d99228b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tasks/main.yml

+ 1
- 1
tasks/main.yml View File

@@ -49,7 +49,7 @@
49 49
 - include_tasks: "install_{{ pip_offline_install | ternary('offline', 'online') }}.yml"
50 50
   tags:
51 51
     - pip_install-install
52
-  when: pip_install_script.find('get-pip.py') != -1 # skip get-pip.py if a suitable pip is installed
52
+  when: pip_install_script.stdout.find('get-pip.py') != -1 # skip get-pip.py if a suitable pip is installed
53 53
 
54 54
 - include_tasks: install_source.yml
55 55
   tags:

Loading…
Cancel
Save