diff options
author | Harald Welte <laforge@osmocom.org> | 2020-11-28 22:30:48 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-11-28 22:33:02 +0100 |
commit | bf07865cb30c0188d25245a043da091a897235de (patch) | |
tree | 773b2ae9ee54733820c73c0bd6955df07910274e /ansible/setup-jenkins-slave.yml | |
parent | 8df41af01099bd58d09f487e13d54624b05e82e4 (diff) |
ansible: Fix OBS directory naming
It's really annoying that OBS uses Debian_8.0 and Debian_9.0 (for 8.x
and 9.x) and then Debian_10 for 10.x. Let's work around this by some
conditional vars_file trickery, hopefully once and for all.
Change-Id: I45c4752774f44332b3f9aaf875f49043c03ec5ca
Diffstat (limited to 'ansible/setup-jenkins-slave.yml')
-rw-r--r-- | ansible/setup-jenkins-slave.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ansible/setup-jenkins-slave.yml b/ansible/setup-jenkins-slave.yml index 64938c8..350a40f 100644 --- a/ansible/setup-jenkins-slave.yml +++ b/ansible/setup-jenkins-slave.yml @@ -2,6 +2,8 @@ - name: setup jenkins slaves hosts: jenkins-slaves user: root + vars_files: + - "vars/{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_major_version']}}.yml" tasks: - name: install common utilities apt: |