blob: 67717fc5715c74eb9f58fcaeca7f7545d0baa495 (
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
|
---
- name: ensure jenkins folder exists
become: yes
become_user: "{{ jenkins_user }}"
file:
path: "/home/{{ jenkins_user }}/jenkins"
state: directory
- name: setup the docker-playground
become: yes
become_user: "{{ jenkins_user }}"
git:
repo: "https://gerrit.osmocom.org/docker-playground"
dest: "/home/{{ jenkins_user }}/jenkins/docker-playground"
- name: add apt.key
get_url:
url: https://obs.osmocom.org/projects/osmocom/public_key
dest: /etc/apt/trusted.gpg.d/obs.osmocom.org.asc
# OBS webserver needs this header, returns 404 otherwise
# https://github.com/ansible/ansible/issues/50436#issuecomment-451205256
headers:
Accept: '*/*'
- name: add apt repository
apt_repository:
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/obs.osmocom.org.asc] https://downloads.osmocom.org/packages/osmocom:/latest/{{ obs_distro }}/ ./"
filename: obs_osmocom
update_cache: yes
- name: install libosmocore-utils
apt:
name:
- libosmocore-utils
update_cache: yes
cache_valid_time: 3600
|