From 5595a9f81d07f840438f52c0560726c87165f622 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Mon, 31 Aug 2015 09:08:35 +0300 Subject: [PATCH] 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). --- system/authorized_key.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/authorized_key.py b/system/authorized_key.py index 376cf4c61dc..361e68cb009 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.