From 2fbc87cd1f2df0471d8af7651ff13b0d3472d907 Mon Sep 17 00:00:00 2001 From: Mike DePaulo Date: Wed, 7 Aug 2019 12:18:59 -0400 Subject: [PATCH] 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. --- tasks/setup-RedHat.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tasks/setup-RedHat.yml b/tasks/setup-RedHat.yml index 9cd84ed..d536bcb 100644 --- a/tasks/setup-RedHat.yml +++ b/tasks/setup-RedHat.yml @@ -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) }}"