--- /dev/null
+---
+# Include variables and define needed variables.
+- name: Include OS-specific variables.
+ include_vars: "{{ ansible_os_family }}.yml"
+
+- name: Define lttng_analyses_packages.
+ set_fact:
+ lttng_analyses_packages: "{{ __lttng_analyses_packages | list }}"
+ when: lttng_analyses_packages is not defined
+
+# Setup/install tasks.
+- include: setup-RedHat.yml
+ when: ansible_os_family == 'RedHat'
+
+- include: setup-Debian.yml
+ when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+ when: ansible_os_family == 'Alpine'
--- /dev/null
+---
+- name: Update apk cache.
+ apk: update_cache=yes
+
+- name: Ensure lttng-analyses build dependencies are installed.
+ apk: "name={{ item }} state=present"
+ with_items: lttng_analyses_packages
+
--- /dev/null
+---
+- name: Update apt cache.
+ apt: update_cache=yes cache_valid_time=86400
+
+- name: Ensure lttng-analyses build dependencies are installed.
+ apt: "name={{ item }} state=installed"
+ with_items: lttng_analyses_packages
+