Fixes: ansible shell non needed quotes :

TASK [Install pip using get-pip.py] ********************************************
task path: /root/rhos-ci/jenkins/workspace/DFG-network-neutron-14_director-rhel-virthost-3cont_2comp-ipv4-vxlan-tobiko/infrared/plugins/tobiko/infrared/tasks/install.yml:1
Saturday 28 September 2019  17:31:57 +0300 (0:00:00.181)       0:00:13.996 ****
fatal: [undercloud-0]: FAILED! => {
    "changed": true,
    "cmd": "\"curl https://bootstrap.pypa.io/get-pip.py | python2\"",
    "delta": "0:00:00.011237",
    "end": "2019-09-28 10:31:58.071984",
    "rc": 127,
    "start": "2019-09-28 10:31:58.060747"
}

STDERR:

/bin/sh: curl https://bootstrap.pypa.io/get-pip.py | python2: No such file or directory

MSG:

non-zero return code

Change-Id: I280263782e846fb78dd51cdccfbb18aac2db3812
This commit is contained in:
pkomarov 2019-09-29 16:05:40 +03:00
parent 91964b910a
commit 3e6880aa17

View File

@ -1,7 +1,7 @@
- name: Install pip using get-pip.py
become: yes
shell: |
"curl https://bootstrap.pypa.io/get-pip.py | {{ python_ver }}"
curl https://bootstrap.pypa.io/get-pip.py | {{ python_ver }}
- name: Install required packages
become: yes