From 3f981d336ca5aab6cdeb824f03c0cd480315b085 Mon Sep 17 00:00:00 2001 From: Julien Erard Date: Mon, 22 Aug 2022 16:06:09 -0700 Subject: [PATCH] fix: make pip uninstall optional --- deploy/linux/roles/prepare/tasks/installSupervisord.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/linux/roles/prepare/tasks/installSupervisord.yml b/deploy/linux/roles/prepare/tasks/installSupervisord.yml index 444ebf5..50c1ca3 100644 --- a/deploy/linux/roles/prepare/tasks/installSupervisord.yml +++ b/deploy/linux/roles/prepare/tasks/installSupervisord.yml @@ -19,6 +19,7 @@ - name: Uninstalling system pip shell: pip uninstall -y pip become: yes + ignore_errors: yes when: pip_installed.stdout|int == 1 and pip_local.stdout|int == 0 - name: Installing latest pip - fetch shell: curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py