Ensure get-pip.py is retrieved properly

Without force: "yes" the get_url module will only retrieve the file if
the destination doesn't exist. This causes issues if, for example, the
get-pip.py exists but is empty (due to an issue), or if the get-pip.py
is updated at some point.

Change-Id: I9d6933c837e0e38d51dfb57a3eddd1ca461e0723
Closes-Bug: #1429165
This commit is contained in:
Andy McCrae 2015-03-06 15:08:34 +00:00 committed by Jesse Pretorius
parent f7c2e363ff
commit 1bfbe3be25

View File

@ -42,6 +42,7 @@
get_url:
url: "{{ pip_get_pip_url }}"
dest: "/opt/get-pip.py"
force: "yes"
validate_certs: "no"
register: get_pip
until: get_pip|success