- v2.24 packages are no longer available on the CentOS mirrors.
Disable warning to use yum module.
- Fix install python script to check python/python3 to test, since
the default python3 is not available on CentOS7 platforms.
- Print the default version of python installed.
Issue-ID: IT-24376
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: Id48ad72aba776ed4092a292c4db1ad6459d9ab64
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
when:
- ansible_facts['distribution_major_version'] is version('8', '>=')
-- name: Swap to git224
+- name: Swap to git236
block:
- name: Install yum-plugin-replace
yum:
- name: Gather rpm package facts
package_facts:
manager: auto
- - name: Replace git with git224
- command: yum replace -y git --replace-with git224
+ - name: Replace git with git236
+ command: yum replace -y git --replace-with git236
+ args:
+ warn: false
when: ansible_facts.packages['git'] is defined
become: true
when:
# Ubuntu 20.04 and newer can default to Python 3
if apt-cache show python-is-python3; then
apt-get install -y python-is-python3
+ type python3
else
apt-get install -y python-minimal
+ type python
fi
fi
echo "Install python38"
dnf clean all
dnf install -y python38
+ python3 -V
+ type python3
fi
-type python3
# Ansible requires sudo so ensure it is available.
if ! command -v sudo; then
--- /dev/null
+---
+upgrade:
+ - |
+ Upgrade git v2.36 on CentOS 7.