Run the setup command if it hasn't already been run.
This commit is contained in:
parent
1fb5bd3524
commit
8651f11fd8
1 changed files with 7 additions and 0 deletions
|
@ -56,3 +56,10 @@
|
|||
tags:
|
||||
- cron
|
||||
- postgresql
|
||||
|
||||
- name: Initialize postgres if necessary
|
||||
command: /usr/bin/postgresql-setup initdb creates=/var/lib/pgsql/data
|
||||
notify:
|
||||
- restart postgresql
|
||||
tags:
|
||||
- postgresql
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue