diff options
Diffstat (limited to 'tasks/postgres-user.yml')
-rw-r--r-- | tasks/postgres-user.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/postgres-user.yml b/tasks/postgres-user.yml index 308dab8..fcef9fc 100644 --- a/tasks/postgres-user.yml +++ b/tasks/postgres-user.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 user | 11 | - name: Create PostgreSQL user |
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_user: | 15 | postgresql_user: |
16 | port: "{{ postgres_port }}" | 16 | port: "{{ postgres_port }}" |
17 | name: "{{ postgres_username }}" | 17 | name: "{{ postgres_username }}" |