diff --git a/inventory/group_vars/utility_all.yml b/inventory/group_vars/utility_all.yml index 67cd205a67..e483a9245a 100644 --- a/inventory/group_vars/utility_all.yml +++ b/inventory/group_vars/utility_all.yml @@ -51,6 +51,7 @@ utility_distro_openstack_clients_packages: - python3-novaclient - python3-cinderclient - python3-openstackclient + - "{{ (ansible_os_family | lower == 'redhat') | ternary('python3-PyMySQL', 'python3-pymysql') }}" # Python packages to be installed into the utility container utility_pip_packages: diff --git a/playbooks/utility-install.yml b/playbooks/utility-install.yml index d6dc700279..4544ac6327 100644 --- a/playbooks/utility-install.yml +++ b/playbooks/utility-install.yml @@ -96,9 +96,9 @@ yum_repository: name: epel-utility baseurl: "{{ centos_epel_mirror | default('http://download.fedoraproject.org/pub/epel') ~ '/' - ~ ansible_facts['distribution_major_version'] ~ '/' + ~ ansible_facts['distribution_major_version'] ~ '/Everything/' ~ ansible_facts['architecture'] }}" - description: 'Extra Packages for Enterprise Linux 7 - $basearch' + description: "Extra Packages for Enterprise Linux {{ ansible_facts['ansible_distribution_major_version'] }} - $basearch" gpgcheck: yes enabled: yes state: present