diff options
| author | John R Barker <john@johnrbarker.com> | 2016-11-24 18:35:53 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-24 18:35:53 +0000 |
| commit | 82191f724f327db4b29f9049808067f89a592eef (patch) | |
| tree | 133495964e43d660c8e4aff2ca8b188980fd5d81 /database/postgresql/postgresql_schema.py | |
| parent | 47146851a1e382052bd6d8cbea67c7cdfdecbeb0 (diff) | |
| download | ansible-modules-extras-82191f724f327db4b29f9049808067f89a592eef.tar.gz | |
Update version_added, update docs (#3542)
k: v in docs now
Minor tweaks after https://github.com/ansible/ansible-modules-extras/pull/1883
Diffstat (limited to 'database/postgresql/postgresql_schema.py')
| -rw-r--r-- | database/postgresql/postgresql_schema.py | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/database/postgresql/postgresql_schema.py b/database/postgresql/postgresql_schema.py index 9aafe757..06cf048d 100644 --- a/database/postgresql/postgresql_schema.py +++ b/database/postgresql/postgresql_schema.py @@ -19,44 +19,44 @@ DOCUMENTATION = ''' --- module: postgresql_schema -short_description: Add or remove PostgreSQL schema from a remote host. +short_description: Add or remove PostgreSQL schema from a remote host description: - Add or remove PostgreSQL schema from a remote host. -version_added: "2.2" +version_added: "2.3" options: name: description: - - name of the schema to add or remove + - Name of the schema to add or remove. required: true default: null database: description: - - name of the database to connect to + - Name of the database to connect to. required: false default: postgres login_user: description: - - The username used to authenticate with + - The username used to authenticate with. required: false default: null login_password: description: - - The password used to authenticate with + - The password used to authenticate with. required: false default: null login_host: description: - - Host running the database + - Host running the database. required: false default: localhost login_unix_socket: description: - - Path to a Unix domain socket for local connections + - Path to a Unix domain socket for local connections. required: false default: null owner: description: - - Name of the role to set as owner of the schema + - Name of the role to set as owner of the schema. required: false default: null port: @@ -66,7 +66,7 @@ options: default: 5432 state: description: - - The schema state + - The schema state. required: false default: present choices: [ "present", "absent" ] @@ -79,9 +79,13 @@ author: "Flavien Chantelot <contact@flavien.io>" EXAMPLES = ''' # Create a new schema with name "acme" -- postgresql_schema: name=acme +- postgresql_schema: + name: acme + # Create a new schema "acme" with a user "bob" who will own it -- postgresql_schema: name=acme owner=bob +- postgresql_schema: + name: acme + owner: bob ''' @@ -261,6 +265,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * from ansible.module_utils.database import * + if __name__ == '__main__': main() - |
