mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
74 lines
No EOL
2.1 KiB
JSON
74 lines
No EOL
2.1 KiB
JSON
{
|
|
"requirements": [
|
|
"psycopg2"
|
|
],
|
|
"description": [
|
|
"Add or remove PostgreSQL databases from a remote host."
|
|
],
|
|
"author": "Lorin Hochstein",
|
|
"notes": [
|
|
"The default authentication assumes that you are either logging in as or sudo'ing to the postgres account on the host.",
|
|
"This module uses psycopg2, a Python PostgreSQL database adapter. You must ensure that psycopg2 is installed on the host before using this module. If the remote host is the PostgreSQL server (which is the default case), then PostgreSQL must also be installed on the remote host. For Ubuntu-based systems, install the postgresql, libpq-dev, and python-psycopg2 packages on the remote host before using this module."
|
|
],
|
|
"docuri": "postgresql-db",
|
|
"module": "postgresql_db",
|
|
"filename": "library/postgresql_db",
|
|
"examples": [
|
|
{
|
|
"code": "postgresql_db db=acme",
|
|
"description": "Create a new database with name 'acme'"
|
|
}
|
|
],
|
|
"version_added": "0.6",
|
|
"short_description": "Add or remove PostgreSQL databases from a remote host.",
|
|
"now_date": "2012-10-09",
|
|
"options": {
|
|
"state": {
|
|
"default": "present",
|
|
"required": false,
|
|
"description": [
|
|
"The database state"
|
|
],
|
|
"choices": [
|
|
"present",
|
|
"absent"
|
|
]
|
|
},
|
|
"name": {
|
|
"default": null,
|
|
"required": true,
|
|
"description": [
|
|
"name of the database to add or remove"
|
|
]
|
|
},
|
|
"login_password": {
|
|
"default": null,
|
|
"required": false,
|
|
"description": [
|
|
"The password used to authenticate with"
|
|
]
|
|
},
|
|
"owner": {
|
|
"default": null,
|
|
"required": false,
|
|
"description": [
|
|
"Name of the role to set as owner of the database"
|
|
]
|
|
},
|
|
"login_user": {
|
|
"default": null,
|
|
"required": false,
|
|
"description": [
|
|
"The username used to authenticate with"
|
|
]
|
|
},
|
|
"login_host": {
|
|
"default": "localhost",
|
|
"required": false,
|
|
"description": [
|
|
"Host running the database"
|
|
]
|
|
}
|
|
},
|
|
"ansible_version": "0.8"
|
|
} |