Skip to content

Instantly share code, notes, and snippets.

@shohey1226
Created February 17, 2014 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shohey1226/9061140 to your computer and use it in GitHub Desktop.
Save shohey1226/9061140 to your computer and use it in GitHub Desktop.
---
- hosts: servers
user: root
tasks:
- name: get jenkins repo
command: wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
- name: install jenkins
command: rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
- name: install Jenkins by yum
yum: name=jenkins state=latest
- name: install Java
yum: name=java-1.7.0-openjdk state=latest
- name: start jenkins
service: name=jenkins state=started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment