mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Ubuntu still having problems initializing the postgres db
This commit is contained in:
parent
05435f380b
commit
00c0d7ce31
1 changed files with 5 additions and 6 deletions
|
@ -52,12 +52,11 @@
|
||||||
command: /sbin/service postgresql initdb
|
command: /sbin/service postgresql initdb
|
||||||
when: ansible_os_family == "RedHat" and ansible_distribution_major_version|int <= 6
|
when: ansible_os_family == "RedHat" and ansible_distribution_major_version|int <= 6
|
||||||
|
|
||||||
# The package install should initialize a db cluster provided that the old db
|
- name: Iniitalize postgres (upstart)
|
||||||
# cluster was entirely removed. So this shouldn't be needed
|
command: /usr/bin/pg_createcluster {{ pg_ver }} main
|
||||||
#- name: Iniitalize postgres (upstart)
|
# Sometimes package install creates the db cluster, sometimes this step is needed
|
||||||
# command: /usr/bin/pg_createcluster {{ pg_ver }} main
|
ignore_errors: True
|
||||||
# ignore_errors: True
|
when: ansible_os_family == 'Debian'
|
||||||
# when: ansible_os_family == 'Debian'
|
|
||||||
|
|
||||||
- name: Copy pg_hba into place
|
- name: Copy pg_hba into place
|
||||||
copy: src=pg_hba.conf dest="{{ pg_hba_location }}" owner="postgres" group="root" mode="0644"
|
copy: src=pg_hba.conf dest="{{ pg_hba_location }}" owner="postgres" group="root" mode="0644"
|
||||||
|
|
Loading…
Reference in a new issue