diff options
author | Michael DeHaan <michael.dehaan@gmail.com> | 2013-06-08 11:24:15 -0700 |
---|---|---|
committer | Michael DeHaan <michael.dehaan@gmail.com> | 2013-06-08 11:24:15 -0700 |
commit | 6f8e9c1b29b8fb8bd4b097ec40a750c70be0a4b4 (patch) | |
tree | 721b3d8f52474b3bc2c50b19614eef4919ff248b | |
parent | a7e8f37dcc91614d265b0563e8eef06fdc8acd3d (diff) | |
parent | 51c74412444dad29f155b0e440c8372848199002 (diff) | |
download | ansible-6f8e9c1b29b8fb8bd4b097ec40a750c70be0a4b4.tar.gz |
Merge pull request #3156 from jlund/authorized_key
Updates to the authorized_key documentation
-rw-r--r-- | library/system/authorized_key | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/system/authorized_key b/library/system/authorized_key index 0423067f43..f70bc69ce1 100644 --- a/library/system/authorized_key +++ b/library/system/authorized_key @@ -31,13 +31,13 @@ version_added: "0.5" options: user: description: - - Name of the user who should have access to the remote host + - The username on the remote host whose authorized_keys file will be modified required: true default: null aliases: [] key: description: - - the SSH public key, as a string + - The SSH public key, as a string required: true default: null path: @@ -55,12 +55,12 @@ options: version_added: "1.2" state: description: - - whether the given key should or should not be in the file + - Whether the given key should or should not be in the file required: false choices: [ "present", "absent" ] default: "present" description: - - "adds or removes authorized keys for particular user accounts" + - "Adds or removes authorized keys for particular user accounts" author: Brad Olson ''' @@ -69,7 +69,7 @@ EXAMPLES = ''' authorized_key: user=charlie key="{{ lookup('file', '/home/charlie/.ssh/id_rsa.pub') }}" # Using alternate directory locations: -authorized_key: user=charlie key="{{ lookup('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') }}" path='/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. |