1 - name: Test if the PostgreSQL server is up
4 become_method: "{{ postgres_become_method }}"
5 command: psql --port={{ postgres_port }} --command='select NOW()'
11 - name: Create PostgreSQL user
14 become_method: "{{ postgres_become_method }}"
16 port: "{{ postgres_port }}"
17 name: "{{ postgres_username }}"
18 password: "{{ postgres_password }}"
20 role_attr_flags: "{{ postgres_permissions }}"