diff options
Diffstat (limited to 'lib/ansible/modules/database/postgresql/postgresql_pg_hba.py')
-rw-r--r-- | lib/ansible/modules/database/postgresql/postgresql_pg_hba.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ansible/modules/database/postgresql/postgresql_pg_hba.py b/lib/ansible/modules/database/postgresql/postgresql_pg_hba.py index aa410992bf..acfaa567e9 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_pg_hba.py +++ b/lib/ansible/modules/database/postgresql/postgresql_pg_hba.py @@ -86,16 +86,19 @@ options: s=source, d=databases, u=users. This option is deprecated since 2.9 and will be removed in 2.11. Sortorder is now hardcoded to sdu. + type: str default: sdu choices: [ sdu, sud, dsu, dus, usd, uds ] state: description: - The lines will be added/modified when C(state=present) and removed when C(state=absent). + type: str default: present choices: [ absent, present ] users: description: - Users this line applies to. + type: str default: all notes: @@ -737,7 +740,7 @@ def main(): if pg_hba.last_backup: ret['backup_file'] = pg_hba.last_backup - ret['pg_hba'] = [rule for rule in pg_hba.get_rules()] + ret['pg_hba'] = list(pg_hba.get_rules()) module.exit_json(**ret) |