2019-04-29 16:08:04 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
- name: install Jenkins
|
|
|
|
hosts: jenkins
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Install Java
|
2019-05-02 07:58:22 -07:00
|
|
|
become: yes
|
|
|
|
import_role:
|
2019-05-14 08:54:40 -07:00
|
|
|
name: geerlingguy.java
|
2019-04-29 16:08:04 -07:00
|
|
|
|
2019-05-16 15:46:19 -07:00
|
|
|
- name: Backup Jenkins Jobs
|
|
|
|
become: yes
|
|
|
|
fetch:
|
|
|
|
src: /var/lib/jenkins/jobs/
|
|
|
|
dest: ./jenkins/jobs/
|
|
|
|
|
2019-05-14 08:54:40 -07:00
|
|
|
- name: Install Jenkins
|
|
|
|
become: yes
|
|
|
|
import_role:
|
|
|
|
name: geerlingguy.jenkins
|
|
|
|
vars:
|
|
|
|
jenkins_package_state: latest
|
|
|
|
jenkins_http_port: 8080
|
|
|
|
|
|
|
|
- name: UFW Allow Jenkins
|
|
|
|
become: yes
|
|
|
|
ufw:
|
|
|
|
rule: allow
|
|
|
|
port: 8080
|
|
|
|
comment: Jenkins
|
2019-04-29 16:08:04 -07:00
|
|
|
|