From a3bcda07e7c825023d38c28935bbc705b3a2ce0e Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 24 May 2021 10:48:53 -0500 Subject: [PATCH] ansible - install dependencies before pip pip will install the same packages but in /local/lib if the dependency is not already in the system path, fill the system path with all the dependencies before doing the local pip install. Helps avoid overlapping of apt vs pip managed files. --- scripts/ansible | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/ansible b/scripts/ansible index 98b882729..f93a6ff7b 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -152,12 +152,11 @@ grep '^deb .*ansible' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | gre echo -e "\napt update; apt install ansible-core and python3 dependencies explained at:" echo -e "https://github.com/iiab/iiab/blob/master/scripts/ansible.md\n" $APT_PATH/apt update -$APT_PATH/apt -y install python3-pip -pip3 install ansible-core #$APT_PATH/apt -y --allow-downgrades install ansible-core \ $APT_PATH/apt -y --allow-downgrades install \ python3-pymysql python3-psycopg2 python3-passlib python3-pip \ python3-setuptools python3-packaging python3-venv virtualenv +pip3 install ansible-core # (Re)running collection installs appears safe, with --force-with-deps to force # upgrade of collection and dependencies it pulls in. Note Ansible may support