mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
Only run postgresql-setup initdb when /var/lib/pgsql/data does not exist
This commit is contained in:
@@ -22,7 +22,8 @@
|
||||
- postgresql
|
||||
|
||||
- name: Initialize postgres if necessary
|
||||
command: /usr/bin/postgresql-setup initdb creates=/var/lib/pgsql/data
|
||||
command: /usr/bin/postgresql-setup initdb
|
||||
when: not os.path.exists("/var/lib/pgsql/data")
|
||||
notify:
|
||||
- restart postgresql
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user