summaryrefslogtreecommitdiffstats
path: root/ansible/roles/osmocom-jenkins-slave/tasks/debian.yml
blob: a1f857451b6a05582099233d3bd216a224de3eb1 (plain)
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
---

- name: install jenkins utilities
  apt:
    name: "{{ item }}"
    cache_valid_time: 3600
    update_cache: yes
  with_items:
    - htop
    - virt-manager
    - qemu
    - qemu-user-static
    - qemu-system-arm
    - proot
    - debootstrap
    - fakeroot

- name: enable backports for jessie
  apt_repository:
    repo: 'deb http://ftp.debian.org/debian jessie-backports main'
    filename: 'backports'
    update_cache: yes

- name: install java for jessie
  apt:
    name: openjdk-8-jre-headless
    cache_valid_time: 3600
    update_cache: yes
    default_release: jessie-backports
  when: ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie'

- name: install java for stretch
  apt:
    name: "{{ item }}"
    cache_valid_time: 3600
    update_cache: yes
  with_items:
    - openjdk-8-jre-headless
  when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'