| 1 | --- |
| 2 | # Include variables and define needed variables. |
| 3 | - name: Include OS-specific variables. |
| 4 | include_vars: "{{ ansible_os_family }}.yml" |
| 5 | |
| 6 | - name: Define lttng_ust_packages. |
| 7 | set_fact: |
| 8 | lttng_ust_packages: "{{ __lttng_ust_packages | list }}" |
| 9 | when: lttng_ust_packages is not defined |
| 10 | |
| 11 | # Setup/install tasks. |
| 12 | - include: setup-RedHat.yml |
| 13 | when: ansible_os_family == 'RedHat' |
| 14 | |
| 15 | - include: setup-Debian.yml |
| 16 | when: ansible_os_family == 'Debian' |
| 17 | |
| 18 | - include: setup-Alpine.yml |
| 19 | when: ansible_os_family == 'Alpine' |