mirror of
https://github.com/geerlingguy/ansible-role-postgresql.git
synced 2024-11-11 13:50:50 -05:00
2fbc87cd1f
By not causing the /usr/bin/python symlink to be installed Otherwise, Ansible molecule converge would use python2, which lacks python2-dnf.
16 lines
613 B
YAML
16 lines
613 B
YAML
---
|
|
- name: Ensure PostgreSQL packages are installed.
|
|
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.
|
|
yum:
|
|
name: "{{ postgresql_python_library }}"
|
|
state: present
|
|
enablerepo: "{{ postgresql_enablerepo | default(omit, true) }}"
|