2016-09-29 16:03:13 +00:00
|
|
|
---
|
|
|
|
- name: Ensure PostgreSQL packages are installed.
|
2019-08-07 16:18:59 +00:00
|
|
|
yum:
|
2018-10-08 20:23:30 +00:00
|
|
|
name: "{{ postgresql_packages }}"
|
2018-04-04 19:03:04 +00:00
|
|
|
state: present
|
2018-10-08 20:23:30 +00:00
|
|
|
enablerepo: "{{ postgresql_enablerepo | default(omit, true) }}"
|
2019-08-07 16:18:59 +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
|
2016-09-29 16:03:13 +00:00
|
|
|
|
|
|
|
- name: Ensure PostgreSQL Python libraries are installed.
|
2019-08-07 16:18:59 +00:00
|
|
|
yum:
|
2017-07-01 04:12:44 +00:00
|
|
|
name: "{{ postgresql_python_library }}"
|
2018-04-04 19:03:04 +00:00
|
|
|
state: present
|
2018-10-08 20:23:30 +00:00
|
|
|
enablerepo: "{{ postgresql_enablerepo | default(omit, true) }}"
|