mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
patch 0002
This commit is contained in:
parent
3a1d427ea0
commit
cb344d7d47
60 changed files with 211 additions and 172 deletions
|
@ -8,13 +8,13 @@
|
|||
|
||||
- name: Install postgresql for debian
|
||||
package: name=postgresql-client
|
||||
when: is_debian
|
||||
when: is_debuntu
|
||||
tags:
|
||||
- download
|
||||
|
||||
- name: Install postgresql for fedora
|
||||
package: name=postgresql-server
|
||||
when: not is_debian
|
||||
when: not is_debuntu
|
||||
tags:
|
||||
- download
|
||||
|
||||
|
@ -35,21 +35,26 @@
|
|||
- name: make sure that the en_US locale is enabled
|
||||
lineinfile: dest=/etc/locale.gen
|
||||
line="{{ postgresql_locale }} UTF-8"
|
||||
when: is_debian
|
||||
when: is_debuntu
|
||||
|
||||
- name: generate the selected locales
|
||||
command: /usr/sbin/locale-gen
|
||||
when: is_debian
|
||||
when: is_debuntu
|
||||
|
||||
- name: Initialize the postgres db
|
||||
command: su - postgres -c "/usr/lib/postgresql/9.4/bin/initdb -E 'UTF-8' --locale={{ postgresql_locale }} -D /library/pgsql-xs"
|
||||
creates=/library/pgsql-xs/pg_hba.conf
|
||||
when: is_debian
|
||||
|
||||
- name: Initialize the postgres db
|
||||
command: su - postgres -c "/usr/lib/postgresql/9.5/bin/initdb -E 'UTF-8' --locale={{ postgresql_locale }} -D /library/pgsql-xs"
|
||||
creates=/library/pgsql-xs/pg_hba.conf
|
||||
when: is_ubuntu
|
||||
|
||||
- name: Initialize the postgres db
|
||||
command: su - postgres -c "/usr/bin/initdb -E 'UTF-8' --lc-collate={{ postgresql_locale }} --lc-ctype={{ postgresql_locale }} -D /library/pgsql-xs"
|
||||
creates=/library/pgsql-xs/pg_hba.conf
|
||||
when: not is_debian
|
||||
when: not is_debuntu
|
||||
|
||||
- name: Configure postgres
|
||||
template: backup=yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue