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