aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/gsm-tester-bts
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-03-08 11:16:35 +0100
committerOliver Smith <osmith@sysmocom.de>2021-03-08 15:47:17 +0100
commitaee8b3f14b82dbe9318dc9b0aff66260ea4e8254 (patch)
tree750e3c2668c2d311176d870f7ba9da0f292f2704 /ansible/roles/gsm-tester-bts
parent8c48d2020a943cecd627f4d7d6e9397140db3f5f (diff)
ansible: fix apt deprecation warning about loops
Fix deprecation warnings like the following: [DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: "{{ item }}"`, please use `name: ['libjansson-dev', 'libulfius-dev']` and remove the loop. This feature will be removed in version 2.11. Related: OS#5055 Change-Id: I57b9ce690e8167249468954f3e62d14c7a92fcfc
Diffstat (limited to 'ansible/roles/gsm-tester-bts')
-rw-r--r--ansible/roles/gsm-tester-bts/tasks/main.yml16
1 files changed, 7 insertions, 9 deletions
diff --git a/ansible/roles/gsm-tester-bts/tasks/main.yml b/ansible/roles/gsm-tester-bts/tasks/main.yml
index e979605..f1377f0 100644
--- a/ansible/roles/gsm-tester-bts/tasks/main.yml
+++ b/ansible/roles/gsm-tester-bts/tasks/main.yml
@@ -15,12 +15,11 @@
- name: usrp install apt dependecies
apt:
- name: "{{ item }}"
+ name:
+ - libuhd-dev
+ - uhd-host
cache_valid_time: 3600
update_cache: yes
- with_items:
- - libuhd-dev
- - uhd-host
register: uhd_installed
- name: usrp download firmware
@@ -48,8 +47,7 @@
- name: install osmocom utilities
apt:
- name: "{{ item }}"
- with_items:
- - abisip-find
- - osmo-bsc-ipaccess-utils
- - osmo-bsc-bs11-utils
+ name:
+ - abisip-find
+ - osmo-bsc-ipaccess-utils
+ - osmo-bsc-bs11-utils