aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/postgres-database.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/postgres-database.yml')
-rw-r--r--tasks/postgres-database.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/postgres-database.yml b/tasks/postgres-database.yml
index c3537ea..0be2dff 100644
--- a/tasks/postgres-database.yml
+++ b/tasks/postgres-database.yml
@@ -1,7 +1,7 @@
1- name: Test if the PostgreSQL server is up 1- name: Test if the PostgreSQL server is up
2 become: true 2 become: true
3 become_user: postgres 3 become_user: postgres
4 become_method: su 4 become_method: "{{ postgres_become_method }}"
5 command: psql --port={{ postgres_port }} --command='select NOW()' 5 command: psql --port={{ postgres_port }} --command='select NOW()'
6 register: postgres_up 6 register: postgres_up
7 ignore_errors: yes 7 ignore_errors: yes
@@ -11,7 +11,7 @@
11- name: Create PostgreSQL database 11- name: Create PostgreSQL database
12 become: true 12 become: true
13 become_user: postgres 13 become_user: postgres
14 become_method: su 14 become_method: "{{ postgres_become_method }}"
15 postgresql_db: 15 postgresql_db:
16 port: "{{ postgres_port }}" 16 port: "{{ postgres_port }}"
17 name: "{{ postgres_dbname }}" 17 name: "{{ postgres_dbname }}"