Skip to content

Commit

Permalink
Possible fix for postgres setup on F21 cloud image
Browse files Browse the repository at this point in the history
  • Loading branch information
abadger committed Dec 10, 2014
1 parent ac71caa commit 2dd0e51
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/integration/roles/setup_postgresql_db/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2dd0e51

Please sign in to comment.