@@ -38,12 +38,21 @@ if [ $ID == "ol" ] || [ $ID == "centos" ] ; then
3838 sudo yum install --enablerepo=$repo -y ansible python-netaddr
3939 elif [ $vid == 8 ] ; then
4040 sudo yum makecache --enablerepo=$repo
41- sudo yum install --enablerepo=$repo -y ansible python3-netaddr
41+ sudo yum install --enablerepo=$repo -y python38.x86_64
42+ sudo python3.8 -m pip install ansible cryptography netaddr
43+ sudo mkdir /etc/ansible
44+ sudo ln -s /usr/local/bin/ansible-playbook /bin/ansible-playbook
45+ sudo ln -s /usr/local/bin/ansible /bin/ansible
46+ sudo python3 -m pip install -U pip
47+ sudo python3 -m pip install netaddr --upgrade
48+ sudo python3 -m pip install setuptools_rust --upgrade
49+ sudo python3 -m pip install requests --upgrade
50+ sudo python3 -m pip install urllib3 --upgrade
4251 fi
4352 sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
4453 sudo yum install -y terraform
54+ sudo python3 -m pip install oci-cli --upgrade
4555
46- sudo pip3 install oci-cli --upgrade
4756
4857elif [ $ID == " debian" ] || [ $ID == " ubuntu" ] ; then
4958 # checking here as well to be sure that the lock file is not being held
@@ -66,16 +75,13 @@ elif [ $ID == "debian" ] || [ $ID == "ubuntu" ] ; then
6675 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
6776 fi
6877
69-
7078 sudo sed -i ' s/"1"/"0"/g' /etc/apt/apt.conf.d/20auto-upgrades
7179 sudo apt purge -y --auto-remove unattended-upgrades
7280 sudo systemctl disable apt-daily-upgrade.timer
7381 sudo systemctl mask apt-daily-upgrade.service
7482 sudo systemctl disable apt-daily.timer
7583 sudo systemctl mask apt-daily.service
7684
77-
78-
7985 sleep 10s
8086
8187 sudo apt-mark hold linux-oracle linux-headers-oracle linux-image-oracle
141147
142148ansible-galaxy collection install ansible.netcommon:=2.5.1 --force > /dev/null
143149ansible-galaxy collection install community.general:=4.8.1 --force > /dev/null
144- ansible-galaxy collection install ansible.posix > /dev/null
150+ ansible-galaxy collection install ansible.posix --force > /dev/null
151+ ansible-galaxy collection install community.crypto --force > /dev/null
145152
146153threads=$( nproc)
147154forks=$(( $threads * 8 ))
0 commit comments