-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathansible-playbook.yml
39 lines (39 loc) · 1.01 KB
/
ansible-playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
- hosts: all
remote_user: root
gather_facts: false
tasks:
- name: Upgrading apt
apt:
update_cache: true
allow_unauthenticated: true
upgrade: true
- name: Install Java8
apt:
name: default-jre
allow_unauthenticated: true
update_cache: false
- name: Install JDK
apt:
name: default-jdk
allow_unauthenticated: true
update_cache: false
- name: Install sudo
apt:
name: sudo
allow_unauthenticated: true
update_cache: false
- name: Download Jenkins-stable-version
shell: wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
- name: Set up configuration
shell: echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list
- name: Updating
apt:
name: update
allow_unauthenticated: true
update_cache: false
- name: Installing Jenkins
apt:
name: jenkins
allow_unauthenticated: true
update_cache: false