community.general/lib/ansible/modules/database
Feike Steenbergen 38e70ea317 Add session_role to postgresql modules (#43650)
* Allow session_role to be set for PostgreSQL

By implementing session_role it becomes possible to run the specific
PostgreSQL commands as a different role.
The usecase that is immediately served by this, is the one that one
ansible playbook can be shared by multiple users, which all have
their
own PostgreSQL login_user. They do not need to share login
credentials,
as they can share the role within the PostgreSQL database.

The following example may give some insight:

$ psql -U jdoe -X -d postgres

postgres=> CREATE DATABASE abc;
ERROR:  permission denied to create database
postgres=> set role postgres;
SET
postgres=# CREATE DATABASE abc;
CREATE DATABASE

fixes #43592

* Tests for session_role in PostgreSQL

* Bump version_added for session_role feature

* Remove explicit encrypted parameter from tests
2019-02-02 20:12:14 +01:00
..
aerospike Aerospike migrations module (#49138) 2019-01-15 14:53:18 -05:00
influxdb influxdb_user: Fixed unhandled exception on invalid login credentials (#50134) 2018-12-20 11:47:39 +00:00
misc Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
mongodb module mongodb_user fix roles default value (#46443) (#46526) 2019-01-22 15:57:49 -05:00
mssql Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
mysql Update documentation for mysql_db notes (#50444) 2019-01-04 08:40:57 +05:30
postgresql Add session_role to postgresql modules (#43650) 2019-02-02 20:12:14 +01:00
proxysql E325 Removal - Part II (#49196) 2018-11-28 13:55:52 +05:30
vertica E325 Removal - Part II (#49196) 2018-11-28 13:55:52 +05:30
__init__.py