From 7250dda50f282e3e3ab1ae7f145bf23999f03d5e Mon Sep 17 00:00:00 2001 From: Chris Parnin Date: Thu, 23 Aug 2018 22:04:55 -0400 Subject: [PATCH] `/usr/local/bin` isn't on container path --- lang/python/python2.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lang/python/python2.yml b/lang/python/python2.yml index 82fdacf7..18bad226 100644 --- a/lang/python/python2.yml +++ b/lang/python/python2.yml @@ -54,8 +54,13 @@ # priority: 1000 # become: yes + - name: fetch fix pip script + get_url: + url: https://bootstrap.pypa.io/get-pip.py + dest: /tmp/get-pip.py + - name: fix pip - shell: curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && python /tmp/get-pip.py --force-reinstall + shell: python /tmp/get-pip.py --force-reinstall become: yes - stat: path="{{BAKER_SHARE_DIR}}/requirements.txt" @@ -64,7 +69,7 @@ - name: Install the project requirements pip: state: present - executable: pip + executable: /usr/local/bin/pip requirements: "{{BAKER_SHARE_DIR}}/requirements.txt" when: file_exists.stat.exists == True become: yes