summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Klychkov <aaklychkov@mail.ru>2019-11-12 06:06:06 +0300
committerMatt Davis <nitzmahone@users.noreply.github.com>2019-11-11 19:06:06 -0800
commitec01279a9c7cc3d95c2ae119f28183c1c4a9bc4e (patch)
tree2b19224e33110f8589216a981a53fef00946d7e5
parent595bdfa8bb08059c122284031285825408d4475c (diff)
downloadansible-ec01279a9c7cc3d95c2ae119f28183c1c4a9bc4e.tar.gz
postgresql_query: add note to the documentation (#64540)
-rw-r--r--lib/ansible/modules/database/postgresql/postgresql_query.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ansible/modules/database/postgresql/postgresql_query.py b/lib/ansible/modules/database/postgresql/postgresql_query.py
index a395985377..365fe416f9 100644
--- a/lib/ansible/modules/database/postgresql/postgresql_query.py
+++ b/lib/ansible/modules/database/postgresql/postgresql_query.py
@@ -21,6 +21,8 @@ short_description: Run PostgreSQL queries
description:
- Runs arbitrary PostgreSQL queries.
- Can run queries from SQL script files.
+- Does not run against backup files. Use M(postgresql_db) with I(state=restore)
+ to run queries on files made by pg_dump/pg_dumpall utilities.
version_added: '2.8'
options:
query:
@@ -68,6 +70,8 @@ notes:
systems, install the postgresql, libpq-dev, and python-psycopg2 packages
on the remote host before using this module.
requirements: [ psycopg2 ]
+seealso:
+- module: postgresql_db
author:
- Felix Archambault (@archf)
- Andrew Klychkov (@Andersson007)