1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Possible fix for postgres setup on F21 cloud image

This commit is contained in:
Toshio Kuratomi 2014-12-10 14:25:40 -08:00
parent ac71caa0ac
commit 2dd0e51469

View file

@ -61,13 +61,21 @@
- name: Copy pg_hba into place
copy: src=pg_hba.conf dest="{{ pg_hba_location }}" owner="postgres" group="root" mode="0644"
- name: Generate locale on Debian systems
- name: Generate pt_BR locale (Debian)
command: locale-gen pt_BR
when: ansible_os_family == 'Debian'
- name: Generate locale on Debian systems
- name: Generate es_MX locale (Debian)
command: locale-gen es_MX
when: ansible_os_family == 'Debian'
- name: Generate pt_BR locale (Red Hat)
command: locale-gen -f UTF-8 -i pt_BR pt_BR
when: ansible_os_family == 'RedHat'
- name: Generate es_MX locale (Red Hat)
command: locale-gen -f UTF-8 -i es_MX es_MX
when: ansible_os_family == 'RedHat'
- name: restart postgresql service
service: name={{ postgresql_service }} state=restarted