postgresql/tasks/user.yaml

11 lines
333 B
YAML
Raw Normal View History

2023-02-07 23:13:12 +00:00
- name: Set initial PostgreSQL user
become: true
become_user: postgres
vars:
ansible_python_interpreter: '/usr/bin/env python3'
community.postgresql.postgresql_user:
2023-02-09 21:49:13 +00:00
db: "{{ postgresql_superuser_db }}"
name: "{{ postgresql_superuser_name }}"
2023-02-07 23:13:12 +00:00
password: "{{ postgresql_superuser_password }}"
state: present