Skip to content

Commit

Permalink
Update pip.yml
Browse files Browse the repository at this point in the history
Install pip only if it was downloaded from https://bootstrap.pypa.io.
Do not try to install the pip package when you re-run this playbook.
  • Loading branch information
vitabaks committed Sep 26, 2019
1 parent 92aa2d0 commit 9e64127
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
dest: /tmp/
timeout: 30
validate_certs: no
register: get_pip_result

- name: pip | install pip
command: python3 get-pip.py --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org
args:
chdir: /tmp/
when: get_pip_result.changed
environment: '{{ proxy_env | default({}) }}'
tags: [ pip_install, pip ]

0 comments on commit 9e64127

Please sign in to comment.