From 9e64127c177ca51b70a4162cbbaf84fe2ce3102e Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Thu, 26 Sep 2019 09:33:13 +0300 Subject: [PATCH] Update pip.yml 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. --- tasks/pip.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/pip.yml b/tasks/pip.yml index 0c0f44122..209c72db1 100644 --- a/tasks/pip.yml +++ b/tasks/pip.yml @@ -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 ]