community.general/lib/ansible
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
..
cli unquote ev (#51560) 2019-01-31 16:55:10 -05:00
compat Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
config added missing version_added 2019-02-01 09:34:14 -05:00
errors Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 2019-01-23 11:32:25 -05:00
executor Fix performance issue with large task retries. (#51581) 2019-01-31 18:44:57 -05:00
galaxy Consistent typesetting of "GitHub" (#50929) 2019-01-15 14:53:04 +01:00
inventory make missing pattern ansibleerror (#51397) 2019-01-30 19:13:19 -05:00
module_utils Lenovo cnos l3interface (#51322) 2019-02-01 09:17:52 -05:00
modules Add session_role to postgresql modules (#43650) 2019-02-02 20:12:14 +01:00
parsing Fieldattribute inheritance with defaults (#50891) 2019-01-23 11:40:07 -06:00
playbook remove bare var handling in conditionals (#51030) 2019-01-30 15:00:24 -05:00
plugins hashi_vault: add support for userpass authentication (#51538) 2019-02-02 12:32:53 +01:00
template Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
utils move extravars and option vars loading into VM (#51070) 2019-01-30 16:25:36 -05:00
vars move extravars and option vars loading into VM (#51070) 2019-01-30 16:25:36 -05:00
__init__.py
constants.py become_method: make dzdo more like sudo (#47946) 2018-12-04 18:24:32 -05:00
context.py Move the arguments module into cli/ and context_objects into utils 2019-01-03 18:12:23 -08:00
release.py Codename: How Many More Times 2018-09-04 12:38:29 -04:00