ansible-role-postgresql/molecule/default/converge.yml

43 lines
881 B
YAML

---
- name: Converge
hosts: all
roles:
- ansible-role-postgresql
vars:
postgresql_use_official_repository: true
postgresql_primary: true
postgresql_config:
listen_addresses: "*"
postgresql_hba:
- type: local
databases:
- myappli
- myappli2
users: all
method: md5
postgresql_databases:
- name: myappli
owner: test
- name: myappli2
owner: test
postgresql_users:
test:
password: secret
myuser:
password: secret
attributes:
- REPLICATION
- INHERIT
postgresql_privileges:
- role: myuser
type: schema
database: myappli
objets:
- public
privileges:
- ALL
pre_tasks:
- name: Update apt cache
ansible.builtin.apt:
update_cache: true