mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
ubuntu-17.yml
This commit is contained in:
parent
caa9b28c7e
commit
ddf2129e5d
3 changed files with 26 additions and 8 deletions
|
@ -44,12 +44,7 @@
|
|||
- name: Initialize the postgres db
|
||||
command: su - postgres -c "/usr/lib/postgresql/{{ postgresql_version }}/bin/initdb -E 'UTF-8' --locale={{ postgresql_locale }} -D /library/pgsql-iiab"
|
||||
creates=/library/pgsql-iiab/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-iiab"
|
||||
creates=/library/pgsql-iiab/pg_hba.conf
|
||||
when: is_ubuntu
|
||||
when: is_debuntu
|
||||
|
||||
- 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-iiab"
|
||||
|
@ -80,8 +75,8 @@
|
|||
enabled=yes
|
||||
when: postgresql_enabled
|
||||
|
||||
- name: Stop and disable postgresql service if not postgresql_enabled
|
||||
service: name=postgresql
|
||||
- name: Stop and disable postgresql-iiab service if not postgresql_enabled
|
||||
service: name=postgresql-iiab
|
||||
state=stopped
|
||||
enabled=no
|
||||
when: not postgresql_enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue