New in version 1.9.
parameter | required | default | choices | comments |
---|---|---|---|---|
db | yes | name of the database to add or remove the extension to/from | ||
login_host | no | localhost | Host running the database | |
login_password | no | The password used to authenticate with | ||
login_user | no | The username used to authenticate with | ||
name | yes | name of the extension to add or remove | ||
port | no | 5432 | Database port to connect to. | |
state | no | present |
| The database extension state |
# Adds postgis to the database "acme" - postgresql_ext: name: postgis db: acme
Note
postgres
account on the host.postgresql
, libpq-dev
, and python-psycopg2
packages on the remote host before using this module.This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/postgresql_ext_module.html