Return PyMySQL installation for distro installs

Due to error, PyMySQL installation for distro based installs was removed
with [1]

We return this behaviour back and fixing LXC distro deployments.

[1] https://review.opendev.org/c/openstack/openstack-ansible/+/742100

Change-Id: Ic03e6271695bbfd5e7166994a44af46cc0134bbd
Closes-Bug: #1922701
This commit is contained in:
Dmitriy Rabotyagov 2021-04-06 16:38:53 +03:00 committed by Dmitriy Rabotyagov
parent 7d148e364d
commit b42ab487a8
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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