Commit | Line | Data |
---|---|---|
3ea0152b MJ |
1 | --- |
2 | # Include variables and define needed variables. | |
3 | - name: Include OS-specific variables. | |
3e0e1609 MJ |
4 | include_vars: "{{ item }}" |
5 | with_first_found: | |
6 | - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" | |
7 | - "{{ ansible_distribution }}.yml" | |
8 | - "{{ ansible_os_family }}.yml" | |
3ea0152b MJ |
9 | |
10 | # Setup/install tasks. | |
11 | - include: setup-RedHat.yml | |
3e0e1609 | 12 | when: ansible_os_family in ['RedHat', 'Rocky'] |
3ea0152b MJ |
13 | |
14 | - include: setup-Debian.yml | |
15 | when: ansible_os_family == 'Debian' | |
16 | ||
1be0d012 MJ |
17 | - include: setup-Alpine.yml |
18 | when: ansible_os_family == 'Alpine' | |
19 | ||
599b56d0 MJ |
20 | - include: setup-Suse.yml |
21 | when: ansible_os_family == 'Suse' | |
22 | ||
3ea0152b | 23 | - name: checkout repo |
b67c1a0b | 24 | when: jenkins_user|bool and lttng_modules_checkout_repo |
42de47d7 | 25 | git: repo=git://git-mirror.internal.efficios.com/git/linux-all.git |
3ea0152b MJ |
26 | dest=/home/jenkins/gitcache/linux-stable.git |
27 | bare=yes | |
f56d2ba7 MJ |
28 | become: yes |
29 | become_user: jenkins |