mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Now that we have all of the postgres db being blown away the package manager is initializing a new db.
We don't need to do it manually anymore
This commit is contained in:
parent
ef9cb19976
commit
8790be3154
1 changed files with 6 additions and 3 deletions
|
@ -52,9 +52,12 @@
|
||||||
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
|
||||||
|
|
||||||
- name: Iniitalize postgres (upstart)
|
# The package install should initialize a db cluster provided that the old db
|
||||||
command: /usr/bin/pg_createcluster {{ pg_ver }} main
|
# cluster was entirely removed. So this shouldn't be needed
|
||||||
when: ansible_os_family == 'Debian'
|
#- name: Iniitalize postgres (upstart)
|
||||||
|
# command: /usr/bin/pg_createcluster {{ pg_ver }} main
|
||||||
|
# ignore_errors: True
|
||||||
|
# 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…
Add table
Add a link
Reference in a new issue