aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/gsm-tester-bts/tasks/main.yml
blob: 37d313946371954499d597d76189c7735ed370dc (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
- name: update apt-cache
  apt:
    cache_valid_time: 3600
    update_cache: yes

- name: ip.access install apt dependencies
  apt:
    name: python3-usb

- name: ip.access install pip3 dependencies
  pip:
    name: pysispm
    executable: pip3

- name: usrp install apt dependecies
  apt:
    name: "{{ item }}"
    cache_valid_time: 3600
    update_cache: yes
  with_items:
    - libuhd-dev
    - uhd-host
  register: uhd_installed

- name: usrp download firmware
  command: uhd_images_downloader
  args:
    creates: /usr/share/uhd/images
  when: uhd_installed | changed

- name: usrp allow jenkins to access
  user:
    name: jenkins
    groups: usrp
    append: yes

- name: add apt-key of OBS network:osmocom:nightly
  apt_key:
    data: "{{ lookup('file', 'Release.key') }}"
    state: present

- name: add apt-repo of OBS network:osmocom:nightly
  apt_repo:
    name: obs_network_osmocom_latest
    repo: "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_{{ ansible_distribution_major_version }}.0/ ./"
    update_cache: yes

- name: install osmocom utilities
  apt:
    name: "{{ item }}"
  with_items:
    - abisip-find
    - osmo-bsc-ipaccess-utils
    - osmo-bsc-bs11-utils