Commit 3e541881 authored by Florian Haas's avatar Florian Haas
Browse files

Ensure PostgreSQL is running before creating users

If PostgreSQL were manually stopped at any time post-install, a re-run
of the playbook would have failed because the postgresql_user module
would have had no database to connect to. Thus, make sure that the
service runs before we try to interact with the database.
parent fac70681
......@@ -14,6 +14,17 @@
- install
- back-install
- name: ensure that the database is running
become: true
become_user: root
name: postgresql
state: started
- install
- back-install
- offline
- name: create PostgreSQL user
become: true
become_user: postgres
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment