2019-09-24 08:59:36 +00:00
|
|
|
---
|
|
|
|
- name: Ensure PostgreSQL packages are installed.
|
2019-09-24 09:19:03 +00:00
|
|
|
yum:
|
2019-09-24 08:59:36 +00:00
|
|
|
name: "{{ postgresql_packages }}"
|
|
|
|
state: present
|
|
|
|
enablerepo: "{{ postgresql_enablerepo | default(omit, true) }}"
|
2019-09-24 09:19:03 +00:00
|
|
|
# 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
|
2019-09-24 08:59:36 +00:00
|
|
|
|
|
|
|
- name: Ensure PostgreSQL Python libraries are installed.
|
2019-09-24 09:19:03 +00:00
|
|
|
yum:
|
2019-09-24 08:59:36 +00:00
|
|
|
name: "{{ postgresql_python_library }}"
|
|
|
|
state: present
|
|
|
|
enablerepo: "{{ postgresql_enablerepo | default(omit, true) }}"
|