diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 0b48d5dce..66e22d9a9 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -64,6 +64,8 @@ - wget state: present +# These are added to scripts/ansible for python3 support and will be removed +# once the pip calls are ported to use python3 - name: "Install 4 common Python packages: python-passlib, python-pip, python-setuptools, python-virtualenv" package: name: diff --git a/scripts/ansible b/scripts/ansible index ca7ab7c47..b41b810ff 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -76,7 +76,8 @@ elif [ -f /etc/debian_version ]; then # Includes Debian, Ubuntu & Raspbian echo -e "\napt update; apt install ansible and python3 dependencies\n" apt update - apt -y --allow-downgrades install ansible python3-distutils python3-mysqldb python3-passlib + apt -y --allow-downgrades install ansible python3-distutils python3-mysqldb python3-passlib python3-pip python3-setuptools python3-virtualenv + echo -e "\nSUCCESS: verify Ansible using 'ansible --version' and/or 'apt -a list ansible'\n\n" # TEMPORARILY USE ANSIBLE 2.4.4 (REMOVE IT WITH "pip uninstall ansible") diff --git a/scripts/ansible-2.8.x b/scripts/ansible-2.8.x index 22e1029b8..a9bbfe311 100755 --- a/scripts/ansible-2.8.x +++ b/scripts/ansible-2.8.x @@ -76,7 +76,7 @@ elif [ -f /etc/debian_version ]; then # Includes Debian, Ubuntu & Raspbian echo -e "\napt update; apt install ansible and python3 dependencies\n" apt update - apt -y --allow-downgrades install ansible python3-distutils python3-mysqldb python3-passlib + apt -y --allow-downgrades install ansible python3-distutils python3-mysqldb python3-passlib python3-pip python3-setuptools python3-virtualenv echo -e "\nSUCCESS: verify Ansible using 'ansible --version' and/or 'apt -a list ansible'\n\n" # TEMPORARILY USE ANSIBLE 2.4.4 (REMOVE IT WITH "pip uninstall ansible") diff --git a/scripts/ansible-2.9.x b/scripts/ansible-2.9.x index b438362cf..106aec67f 100755 --- a/scripts/ansible-2.9.x +++ b/scripts/ansible-2.9.x @@ -76,7 +76,7 @@ elif [ -f /etc/debian_version ]; then # Includes Debian, Ubuntu & Raspbian echo -e "\napt update; apt install ansible and python3 dependencies\n" apt update - apt -y --allow-downgrades install ansible python3-distutils python3-mysqldb python3-passlib + apt -y --allow-downgrades install ansible python3-distutils python3-mysqldb python3-passlib python3-pip python3-setuptools python3-virtualenv echo -e "\nSUCCESS: verify Ansible using 'ansible --version' and/or 'apt -a list ansible'\n\n" # TEMPORARILY USE ANSIBLE 2.4.4 (REMOVE IT WITH "pip uninstall ansible")