Skip to content

Commit 44f30d1

Browse files
committed
ol8 updates
1 parent 23bea0a commit 44f30d1

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

bin/bastion.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,16 @@ if [ $ID == "ol" ] || [ $ID == "centos" ] ; then
4141
sudo yum install --enablerepo=$repo -y python38.x86_64
4242
sudo python3.8 -m pip install ansible cryptography netaddr
4343
sudo mkdir /etc/ansible
44+
sudo python3 -m pip install -U pip
45+
sudo python3 -m pip install netaddr --upgrade
46+
sudo python3 -m pip install setuptools_rust --upgrade
47+
sudo python3 -m pip install requests --upgrade
48+
sudo python3 -m pip install urllib3 --upgrade
4449
fi
4550
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
4651
sudo yum install -y terraform
47-
sudo python3 -m pip install -U pip
48-
sudo python3 -m pip install oci-cli --upgrade
49-
sudo python3 -m pip install netaddr --upgrade
50-
sudo python3 -m pip install setuptools_rust --upgrade
51-
sudo python3 -m pip install requests --upgrade
52-
sudo python3 -m pip install urllib3 --upgrade
52+
sudo python3 -m pip install oci-cli --upgrade
53+
5354

5455
elif [ $ID == "debian" ] || [ $ID == "ubuntu" ] ; then
5556
# checking here as well to be sure that the lock file is not being held

inventory.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bastion]
2-
${bastion_name} ansible_host=${bastion_ip} ansible_user=${bastion_username} role=bastion ansible_python_interpreter=/usr/bin/python3
2+
${bastion_name} ansible_host=${bastion_ip} ansible_user=${bastion_username} role=bastion
33
[slurm_backup]
44
%{ if backup_name != "" }${backup_name} ansible_host=${backup_ip} ansible_user=${compute_username} role=bastion%{ endif }
55
[login]

playbooks/group_vars/all.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
ssl_cert_path: '/etc/ssl/certs'
22
ssl_ca_cert: '{{ ssl_cert_path }}/cluster-ca.crt'
33
ssl_cert_group: ssl
4+
set_fact:
5+
ansible_python_interpreter: /usr/bin/python3
6+
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == '8'

0 commit comments

Comments
 (0)