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

44 lines
881 B
YAML
Raw Normal View History

2021-09-10 12:09:38 +00:00
---
- name: Converge
hosts: all
roles:
2022-02-18 08:21:18 +00:00
- ansible-role-postgresql
2021-09-10 12:09:38 +00:00
vars:
postgresql_use_official_repository: true
2021-09-11 12:38:26 +00:00
postgresql_primary: true
2021-09-10 12:09:38 +00:00
postgresql_config:
2023-08-28 12:55:55 +00:00
listen_addresses: "*"
2021-09-10 12:09:38 +00:00
postgresql_hba:
- type: local
2021-09-10 12:09:38 +00:00
databases:
- myappli
- myappli2
2021-09-10 12:09:38 +00:00
users: all
method: md5
postgresql_databases:
- name: myappli
2022-07-20 08:35:39 +00:00
owner: test
- name: myappli2
2022-07-20 08:35:39 +00:00
owner: test
2021-09-10 12:09:38 +00:00
postgresql_users:
test:
password: secret
myuser:
2021-09-10 12:09:38 +00:00
password: secret
2021-11-09 10:40:21 +00:00
attributes:
- REPLICATION
- INHERIT
postgresql_privileges:
- role: myuser
2023-08-28 12:55:55 +00:00
type: schema
database: myappli
objets:
2023-08-28 12:55:55 +00:00
- public
privileges:
- ALL
2021-09-10 12:09:38 +00:00
pre_tasks:
2023-08-28 12:55:55 +00:00
- name: Update apt cache
2021-09-10 12:09:38 +00:00
ansible.builtin.apt:
update_cache: true