Python library to parse PostgreSQL privileges
Manage PostgreSQL roles and privileges from YAML or LDAP
Paternoster allows you to run Ansible playbooks like ordinary Python or Bash scripts.