Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
slapos.package
Commits
c5e75b85
Commit
c5e75b85
authored
Aug 25, 2015
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force download and copy of authorized_keys file
parent
8ba4cd77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
playbook/roles/vm-bootstrap/tasks/ssh.yml
playbook/roles/vm-bootstrap/tasks/ssh.yml
+3
-3
No files found.
playbook/roles/vm-bootstrap/tasks/ssh.yml
View file @
c5e75b85
...
...
@@ -6,7 +6,7 @@
file
:
path=/home/netadmin/.ssh state=directory mode=700 owner=netadmin group=netadmin
-
name
:
Download ssh authorized keys
get_url
:
url=http://10.0.2.100/authorized_keys dest=/root/.ssh/authorized_keys.download mode=755
get_url
:
url=http://10.0.2.100/authorized_keys dest=/root/.ssh/authorized_keys.download mode=755
force=yes
ignore_errors
:
True
-
name
:
stat /root/.ssh/authorized_keys.download
...
...
@@ -14,7 +14,7 @@
register
:
authorized_keys
-
name
:
replace /root/.ssh/authorized_keys
copy
:
src=/root/.ssh/authorized_keys.download dest=/root/.ssh/authorized_keys mode=644
copy
:
src=/root/.ssh/authorized_keys.download dest=/root/.ssh/authorized_keys mode=644
force=yes
when
:
authorized_keys.stat.exists == True
-
name
:
replace /home/netadmin/.ssh/authorized_keys
...
...
@@ -31,4 +31,4 @@
lineinfile
:
dest=/etc/ssh/sshd_config line="PermitRootLogin no"
notify
:
-
restart ssh
-
restart sshd
-
restart sshd
\ No newline at end of file
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