summaryrefslogtreecommitdiff
path: root/docsite
diff options
context:
space:
mode:
authorscottb <sydtech@gmail.com>2016-09-29 23:03:18 -0700
committerGitHub <noreply@github.com>2016-09-29 23:03:18 -0700
commitdb06a44b7c50fb2f46e9d4e146a54405f9538e59 (patch)
tree4749e26d9660d218517733050c216e8ba7a925b2 /docsite
parent603f8ce91e69087bb0e0221528804ca5096955c7 (diff)
parentfd28103c2877d940d259d2436a67ca33bf971182 (diff)
downloadansible-db06a44b7c50fb2f46e9d4e146a54405f9538e59.tar.gz
Merge pull request #14691 from udesilva/patch-1
Update Lookups documentation regarding a possible pitfall with password plugin
Diffstat (limited to 'docsite')
-rw-r--r--docsite/rst/playbooks_lookups.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/docsite/rst/playbooks_lookups.rst b/docsite/rst/playbooks_lookups.rst
index 2fce518bf7..007f225593 100644
--- a/docsite/rst/playbooks_lookups.rst
+++ b/docsite/rst/playbooks_lookups.rst
@@ -67,7 +67,9 @@ This length can be changed by passing an extra parameter::
(...)
-.. note:: If the file already exists, no data will be written to it. If the file has contents, those contents will be read in as the password. Empty files cause the password to return as an empty string
+.. note:: If the file already exists, no data will be written to it. If the file has contents, those contents will be read in as the password. Empty files cause the password to return as an empty string.
+
+Caution: Since this runs on the ansible host as the user running the playbook, and "become" does not apply, the target file must be readable by the playbook user, or, if it does not exist, the playbook user must have sufficient privileges to create it. (So, for example, attempts to write into areas such as /etc will fail unless the entire playbook is being run as root).
Starting in version 1.4, password accepts a "chars" parameter to allow defining a custom character set in the generated passwords. It accepts comma separated list of names that are either string module attributes (ascii_letters,digits, etc) or are used literally::