ansible / ansible.builtin / v2.4.4.0-1 / module / postgresql_schema Add or remove PostgreSQL schema from a remote host | "added in version" 2.3 of ansible.builtin" Authors: Flavien Chantelot <contact@flavien.io> preview | supported by communityansible.builtin.postgresql_schema (v2.4.4.0-1) — module
pip
Install with pip install ansible==2.4.4.0.post1
Add or remove PostgreSQL schema from a remote host.
# Create a new schema with 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
name: default: null description: - Name of the schema to add or remove. required: true port: default: 5432 description: - Database port to connect to. required: false owner: default: null description: - Name of the role to set as owner of the schema. required: false state: choices: - present - absent default: present description: - The schema state. required: false database: default: postgres description: - Name of the database to connect to. required: false login_host: default: localhost description: - Host running the database. required: false login_user: default: null description: - The username used to authenticate with. required: false login_password: default: null description: - The password used to authenticate with. required: false login_unix_socket: default: null description: - Path to a Unix domain socket for local connections. required: false
schema: description: Name of the schema returned: success, changed sample: acme type: string