Commit 6ab329ba authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

Installs Jenkins on Debian 9.3

parents
Ansible playbooks for setting up the CI server
==============================================
Installs Jenkins on a remote Debian system.
Requires
--------
- ansible (tested 2.4.2.0)
- ansible-galaxy
### Installation
```
$ ansible-galaxy install geerlingguy.jenkins
```
Setup
-----
Create `inventory.txt` and `configs/jenkins.yml`. **Don't commit those files**!
Running
-------
```
$ ansible-playbook -i ./inventory.txt ./install_jenkins.yml
```
---
- hosts: jenkins
vars:
jenkins_admin_password:
---
- import_playbook: configs/jenkins.yml
- hosts: jenkins
user: root
roles:
- role: geerlingguy.jenkins
jenkins_package_state: latest # allow upgrades
# use LTS
jenkins_repo_url: deb http://pkg.jenkins-ci.org/debian-stable binary/
jenkins_repo_key_url: http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key
java_packages:
- openjdk-8-jre
become: true
[jenkins]
example.com ansible_port=1234 ansible_ssh_private_key_file=/path/to/private/ssh/key
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment