From 7b6882ef34978198df0b42c94366f75be2ec1190 Mon Sep 17 00:00:00 2001 From: Steeve Goveas Date: Fri, 30 Jul 2021 15:22:58 +0530 Subject: [PATCH] Add epel 8 repo link for sshpass Resolves: rhbz#1954686 epel 9 is not availabe yet. epel 8 was removed from the rhel9 compose, so added task in playbook to add epel 8 repo. Pacakge python3-virtualenv is removed from rhel9. Removed it from list of packages to install --- tests/sssd-tasks.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/tests/sssd-tasks.yml b/tests/sssd-tasks.yml index e4a0c30..372320a 100644 --- a/tests/sssd-tasks.yml +++ b/tests/sssd-tasks.yml @@ -14,14 +14,26 @@ - rsync when: ansible_pkg_mgr != 'unknown' +- name: Add epel repo + yum_repository: + name: epel8 + file: epel8 + description: EPEL Repo of RHEL 8 because RHEL 9 is not available + baseurl: https://download.fedoraproject.org/pub/epel/8/Everything/x86_64/ + enabled: no + gpgcheck: no + - name: Install sshpass from epel - shell: yum --enablerepo epel install sshpass -y + yum: + name: sshpass + enablerepo: epel8 + state: present - name: Install required packages dnf: name: > git, gcc, redhat-rpm-config.noarch, openldap-devel, - openldap-clients, dbus-tools, python3-virtualenv, make, + openldap-clients, dbus-tools, make, python3-pip, krb5-devel, sssd, sssd-kcm, libsss_sudo, ldb-tools, sssd-tools, nss-tools, sssd-dbus, python3-devel @@ -63,7 +75,7 @@ setuptools, pytz, paramiko, pep8, pylint, pytest-multihost, python-ldap, pytest, pyyaml virtualenv: "{{ venv_dir }}" - virtualenv_command: /usr/bin/virtualenv + virtualenv_command: python3 -m venv - name: Find directory python searches for path shell: python3 -m site --user-site