Skip to content
Snippets Groups Projects
Verified Commit 10c465d6 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

roles/postgres: Start postgres only after configuring it

parent c6ddab90
No related branches found
No related tags found
No related merge requests found
......@@ -14,9 +14,6 @@
notify:
- restart postgres
- name: start and enable postgres
service: name=postgresql enabled=yes state=started
- name: configure postgres
template: src={{ item }}.j2 dest=/var/lib/postgres/data/{{ item }} owner=postgres group=postgres mode=600
with_items:
......@@ -25,6 +22,9 @@
notify:
- restart postgres
- name: start and enable postgres
service: name=postgresql enabled=yes state=started
- name: set postgres user password
postgresql_user: name=postgres password={{ postgres_users.postgres }}
become: yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment