Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
6f8e9c1b
Commit
6f8e9c1b
authored
Jun 08, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3156 from jlund/authorized_key
Updates to the authorized_key documentation
parents
a7e8f37d
51c74412
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
library/system/authorized_key
+5
-5
No files found.
library/system/authorized_key
View file @
6f8e9c1b
...
...
@@ -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:
-
t
he SSH public key, as a string
-
T
he SSH public key, as a string
required: true
default: null
path:
...
...
@@ -55,12 +55,12 @@ options:
version_added: "1.2"
state:
description:
-
w
hether the given key should or should not be in the file
-
W
hether the given key should or should not be in the file
required: false
choices: [ "present", "absent" ]
default: "present"
description:
- "
a
dds or removes authorized keys for particular user accounts"
- "
A
dds 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment