From e3a2825df79592f12bffa45ad356ed4b0f0bae3b Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sat, 30 Oct 2021 11:29:26 -0500 Subject: [PATCH 1/2] Update ansible Disable the use of pip cache system wide, leaves no files hanging around in /root/.pip when disabled. --- scripts/ansible | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ansible b/scripts/ansible index bc53d195c..5b7ff1e17 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -166,7 +166,8 @@ $APT_PATH/apt -y install python3-pip # python3-setuptools python3-packaging python3-venv virtualenv #$APT_PATH/apt -y --allow-downgrades install ansible-core \ - +# Using pip is messy, leaving behind cashed files, turn off pip cache system wide before installing +pip config set global.cache-dir false echo -e "\n\n'pip3 install --upgrade ansible-core' will now run:\n" pip3 install --upgrade ansible-core From f7ae4f95d442f355a5ebe24d33e7478a243572d2 Mon Sep 17 00:00:00 2001 From: A Holt Date: Sat, 30 Oct 2021 14:43:25 -0400 Subject: [PATCH 2/2] scripts/ansible: Clarify 'pip config set global.cache-dir false' --- scripts/ansible | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/ansible b/scripts/ansible index 5b7ff1e17..2baf575fc 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -165,8 +165,11 @@ $APT_PATH/apt -y install python3-pip # python3-pymysql python3-psycopg2 python3-passlib python3-pip \ # python3-setuptools python3-packaging python3-venv virtualenv -#$APT_PATH/apt -y --allow-downgrades install ansible-core \ -# Using pip is messy, leaving behind cashed files, turn off pip cache system wide before installing +#$APT_PATH/apt -y --allow-downgrades install ansible-core + +# 2021-10-30: Using pip is messy, leaving behind cached files, so turn off pip +# cache system-wide before installing: +# https://stackoverflow.com/questions/9510474/removing-pips-cache/61762308#61762308 pip config set global.cache-dir false echo -e "\n\n'pip3 install --upgrade ansible-core' will now run:\n" pip3 install --upgrade ansible-core