Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
edx
configuration
Commits
f88b8d59
Commit
f88b8d59
authored
Oct 15, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add github.com to ssh known_hosts for jenkins
parent
2bb6f370
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
playbooks/roles/jenkins_worker/tasks/system.yml
+6
-0
No files found.
playbooks/roles/jenkins_worker/tasks/system.yml
View file @
f88b8d59
...
...
@@ -44,3 +44,9 @@
-
name
:
jenkins_worker | Add script to set up environment variables
template
:
src=jenkins_env.sh.j2 dest=/usr/local/bin/jenkins_env.sh
owner=root group=root mode=0555
# Need to add Github to known_hosts to avoid
# being prompted when using git through ssh
-
name
:
jenkins_worker | Add github.com to known_hosts if it does not exist
shell
:
>
ssh-keygen -f {{ jenkins_user_home }}/.ssh/known_hosts -H -F github.com | grep -q found || ssh-keyscan -H github.com > {{ jenkins_user_home }}/.ssh/known_hosts
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