Update to 2020-04-17 18:00

master
Daniel Berteaud 5 years ago
parent 77cd276054
commit 065b47b9a0
  1. 10
      roles/postgresql_server/defaults/main.yml
  2. 6
      roles/postgresql_server/tasks/main.yml

@ -53,9 +53,19 @@ pg_conf: "{{ pg_base_conf | combine(pg_extra_conf, recursive=True) }}"
# - SUPERUSER # - SUPERUSER
# - CREATEDB # - CREATEDB
# - CREATEROLE # - CREATEROLE
# pg_privs:
# - database: dbname
# state: present
# privs: SELECT,INSERT,DELETE,UPDATE
# objs: ALL_IN_SCHEMA
# type: table
# schema: public
# role: reportuser
# #
pg_databases: [] pg_databases: []
pg_roles: [] pg_roles: []
pg_privs: []
# Databases and roles to remove # Databases and roles to remove
pg_databases_to_remove: [] pg_databases_to_remove: []

@ -125,6 +125,12 @@
with_items: "{{ pg_databases }}" with_items: "{{ pg_databases }}"
tags: pg tags: pg
- name: Apply privileges
postgresql_privs: "{{ item }}"
become_user: postgres
loop: "{{ pg_privs }}"
tags: pg
- name: Remove databases - name: Remove databases
postgresql_db: postgresql_db:
name: "{{ item }}" name: "{{ item }}"

Loading…
Cancel
Save