Fix CI on Fedora 30 containers again

By not causing the /usr/bin/python symlink to be installed
Otherwise, Ansible molecule converge would use python2, which
lacks python2-dnf.
This commit is contained in:
Mike DePaulo 2019-08-07 12:18:59 -04:00
parent 185f7bac33
commit 2fbc87cd1f
1 changed files with 6 additions and 2 deletions

View File

@ -1,12 +1,16 @@
---
- name: Ensure PostgreSQL packages are installed.
package:
yum:
name: "{{ postgresql_packages }}"
state: present
enablerepo: "{{ postgresql_enablerepo | default(omit, true) }}"
# Don't let postgresql-contrib cause the /usr/bin/python symlink
# to be installed, which breaks later Ansible runs on Fedora 30,
# and affects system behavior in multiple ways.
exclude: python-unversioned-command
- name: Ensure PostgreSQL Python libraries are installed.
package:
yum:
name: "{{ postgresql_python_library }}"
state: present
enablerepo: "{{ postgresql_enablerepo | default(omit, true) }}"