Ansible/playbook/linux/install-jenkins.yml
James Tombleson e9d2d3e52c Vault is now working
Getting closer to having Jenkins run Ansible playbooks.
2019-05-16 15:46:19 -07:00

34 lines
721 B
YAML

---
- name: install Jenkins
hosts: jenkins
tasks:
- name: Install Java
become: yes
import_role:
name: geerlingguy.java
- name: Backup Jenkins Jobs
become: yes
fetch:
src: /var/lib/jenkins/jobs/
dest: ./jenkins/jobs/
- 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