From: Andrew Grimberg Date: Mon, 24 Jun 2019 21:53:05 +0000 (-0700) Subject: Install ius and swap git2u for git on RHEL systems X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=ae351944b9b77dfd8ea347f477593e38250cd481;p=ansible%2Froles%2Flf-recommended-tools.git Install ius and swap git2u for git on RHEL systems Some of our jobs are failing, or at least having issues, due to not having a recent enough version of git on the CentOS systems. Updating the base recommended tooling to include a newer version of git on RHEL systems should resolve this problem. Issue: RELENG-2143 Change-Id: I2c690c94d0602b8790e37432ba2e24671e8cccb3 Signed-off-by: Andrew Grimberg --- diff --git a/tasks/main.yml b/tasks/main.yml index 36c6844..663fafa 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -21,6 +21,19 @@ when: ansible_os_family == 'RedHat' become: true +- name: Swap to git2u + block: + - name: Install yum-plugin-replace + yum: name=yum-plugin-replace state=present update_cache=yes + - name: Gather rpm package facts + package_facts: + manager: auto + - name: Replace git with git2u + command: yum replace -y git --replace-with git2u + when: ansible_facts.packages['git'] is defined + when: ansible_os_family == 'RedHat' + become: true + - name: Install PlantUML block: - name: Create /opt/plantuml install directory diff --git a/vars/RedHat.yaml b/vars/RedHat.yaml index 50f9eb3..3c36cb5 100644 --- a/vars/RedHat.yaml +++ b/vars/RedHat.yaml @@ -2,6 +2,7 @@ lf_recommended_tools_packages_distro: - fedora-packager - http://ftp.riken.jp/Linux/cern/centos/7/cern/x86_64/Packages/parallel-20150522-1.el7.cern.noarch.rpm + - https://centos7.iuscommunity.org/ius-release.rpm - nc - perl-Digest-SHA - perl-ExtUtils-MakeMaker