From e67a8852e9e1be75f3ea4086e22032c0fb6c48d8 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 18 Apr 2013 22:36:06 -0400 Subject: [PATCH] Showcase the new-style lookup plugin access in the authorized_key docs rather than the old-style $FILE --- authorized_key | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authorized_key b/authorized_key index b22afe19a23..fe88003823a 100644 --- a/authorized_key +++ b/authorized_key @@ -65,10 +65,10 @@ author: Brad Olson EXAMPLES = ''' # Example using key data from a local file on the management machine -authorized_key: user=charlie key='$FILE(/home/charlie/.ssh/id_rsa.pub) +authorized_key: user=charlie key="{{ lookup('file', '/home/charlie/.ssh/id_rsa.pub') }}" # Using alternate directory locations: -authorized_key: user=charlie key='$FILE(/home/charlie/.ssh/id_rsa.pub)' sshdir='/etc/ssh/authorized_keys/charlie' manage_dir=no +authorized_key: user=charlie key="{{ lookup('file', '/home/charlie/.ssh/id_rsa.pub') }}" sshdir='/etc/ssh/authorized_keys/charlie' manage_dir=no ''' # Makes sure the public key line is present or absent in the user's .ssh/authorized_keys.