postgresql/tasks/user.yaml

11 lines
337 B
YAML

- name: Set initial PostgreSQL user
become: true
become_user: postgres
vars:
ansible_python_interpreter: '/usr/bin/env python3'
community.postgresql.postgresql_user:
db: "{{ postgresql_superuser_db }}"
name: "{{ postgresql_superuser_username }}"
password: "{{ postgresql_superuser_password }}"
state: present