2016-09-29 12:03:13 -04:00
|
|
|
---
|
|
|
|
- name: Ensure PostgreSQL Python libraries are installed.
|
2017-07-01 00:12:44 -04:00
|
|
|
apt:
|
|
|
|
name: "{{ postgresql_python_library }}"
|
2018-04-04 15:03:04 -04:00
|
|
|
state: present
|
2016-09-29 12:03:13 -04:00
|
|
|
|
|
|
|
- name: Ensure PostgreSQL packages are installed.
|
2017-07-01 00:12:44 -04:00
|
|
|
apt:
|
2018-10-23 17:31:32 -04:00
|
|
|
name: "{{ postgresql_packages }}"
|
2018-04-04 15:03:04 -04:00
|
|
|
state: present
|
2016-09-29 23:05:15 -04:00
|
|
|
|
|
|
|
- name: Ensure all configured locales are present.
|
|
|
|
locale_gen: "name={{ item }} state=present"
|
|
|
|
with_items: "{{ postgresql_locales }}"
|
|
|
|
register: locale_gen_result
|
|
|
|
|
|
|
|
- name: Force-restart PostgreSQL after new locales are generated.
|
|
|
|
service:
|
|
|
|
name: "{{ postgresql_daemon }}"
|
|
|
|
state: restarted
|
|
|
|
when: locale_gen_result.changed
|