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
This commit is contained in:
Markos Chandras 2018-05-24 08:41:15 +01:00
parent f6fe09efd1
commit fe5d99228b
1 changed files with 1 additions and 1 deletions

View File

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