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).
This commit is contained in:
parent
223cac3f39
commit
b2fc74337a
1 changed files with 3 additions and 1 deletions
|
@ -112,8 +112,10 @@ EXAMPLES = '''
|
||||||
key_options='no-port-forwarding,from="10.0.1.1"'
|
key_options='no-port-forwarding,from="10.0.1.1"'
|
||||||
|
|
||||||
# Set up authorized_keys exclusively with one key
|
# 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
|
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.
|
# Makes sure the public key line is present or absent in the user's .ssh/authorized_keys.
|
||||||
|
|
Loading…
Reference in a new issue