summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <bcoca@ansible.com>2015-08-31 20:30:50 -0400
committerBrian Coca <bcoca@ansible.com>2015-08-31 20:30:50 -0400
commit0bff493fae732f4e9fab9a9211a7fc37f3ab86e8 (patch)
treeca6367d4cf34fa43b614144c03090a20a7cc209f
parent06fc029f73ccd323e355424c016bbcbbc2fb8c80 (diff)
parent5595a9f81d07f840438f52c0560726c87165f622 (diff)
downloadansible-modules-core-0bff493fae732f4e9fab9a9211a7fc37f3ab86e8.tar.gz
Merge pull request #1989 from mgedmin/patch-1
authorized_key: fix example in documentation
-rw-r--r--system/authorized_key.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/authorized_key.py b/system/authorized_key.py
index 376cf4c6..361e68cb 100644
--- a/system/authorized_key.py
+++ b/system/authorized_key.py
@@ -112,8 +112,10 @@ EXAMPLES = '''
key_options='no-port-forwarding,from="10.0.1.1"'
# Set up authorized_keys exclusively with one key
-- authorized_key: user=root key=public_keys/doe-jane state=present
+- authorized_key: user=root key="{{ item }}" state=present
exclusive=yes
+ with_file:
+ - public_keys/doe-jane
'''
# Makes sure the public key line is present or absent in the user's .ssh/authorized_keys.