diff options
author | Sam Doran <sdoran@ansible.com> | 2016-10-12 15:35:34 -0400 |
---|---|---|
committer | Sam Doran <sdoran@ansible.com> | 2016-11-14 12:56:00 -0500 |
commit | c20e4b12e3a85e41c60adbaceb406e837c6c82d8 (patch) | |
tree | b762305ce13c30758f8134867d2c995a04a16f90 | |
parent | 67c02b63467de80b1fc9d62dcae601904de5c72b (diff) | |
download | ansible-modules-core-c20e4b12e3a85e41c60adbaceb406e837c6c82d8.tar.gz |
Change examples syntax on postgresql_user module
-rw-r--r-- | database/postgresql/postgresql_user.py | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/database/postgresql/postgresql_user.py b/database/postgresql/postgresql_user.py index d8b0b8bb..803751ea 100644 --- a/database/postgresql/postgresql_user.py +++ b/database/postgresql/postgresql_user.py @@ -142,22 +142,41 @@ author: "Ansible Core Team" EXAMPLES = ''' # Create django user and grant access to database and products table -- postgresql_user: db=acme name=django password=ceec4eif7ya priv=CONNECT/products:ALL +- postgresql_user: + db: acme + name: django + password: ceec4eif7ya + priv: CONNECT/products:ALL # Create rails user, grant privilege to create other databases and demote rails from super user status -- postgresql_user: name=rails password=secret role_attr_flags=CREATEDB,NOSUPERUSER +- postgresql_user: + name: rails + password: secret + role_attr_flags: CREATEDB,NOSUPERUSER # Remove test user privileges from acme -- postgresql_user: db=acme name=test priv=ALL/products:ALL state=absent fail_on_user=no +- postgresql_user: + db: acme + name: test + priv: "ALL/products:ALL" + state: absent + fail_on_user: no # Remove test user from test database and the cluster -- postgresql_user: db=test name=test priv=ALL state=absent +- postgresql_user: + db: test + name: test + priv: ALL + state: absent # Example privileges string format INSERT,UPDATE/table:SELECT/anothertable:ALL # Remove an existing user's password -- postgresql_user: db=test user=test password=NULL +- postgresql_user: + db: test + user: test + password: NULL ''' import re |