summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2015-08-31 09:08:35 +0300
committerMarius Gedminas <marius@gedmin.as>2015-08-31 09:08:35 +0300
commit5595a9f81d07f840438f52c0560726c87165f622 (patch)
tree383981c47476ca2263a6a778441bb7b7e749bf9e
parentef1f31c652f6dc53babb567e8927e2cf9fc363eb (diff)
downloadansible-modules-core-5595a9f81d07f840438f52c0560726c87165f622.tar.gz
authorized_key: fix example in documentation
'key=' cannot be pointing to a file name; it needs to be the key itself as a string (or a URL).
-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.