1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

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.
This commit is contained in:
Jerry Vonau 2021-05-24 10:48:53 -05:00
parent 4c16673bd6
commit a3bcda07e7

View file

@ -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