--- /dev/null
+---
+# Include variables and define needed variables.
+- name: Include OS-specific variables.
+ include_vars: "{{ ansible_os_family }}.yml"
+
+- name: Define lttng_scope_packages.
+ set_fact:
+ lttng_scope_packages: "{{ __lttng_scope_packages | list }}"
+ when: lttng_scope_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'
--- /dev/null
+---
+- name: Update apt cache.
+ apt: update_cache=yes cache_valid_time=86400
+
+- name: Ensure unity is installed.
+ apt: "name=unity install_recommends=no"
+
+- name: Ensure lttng_scope build dependencies are installed.
+ apt: "name={{ item }} state=installed"
+ with_items: "{{ lttng_scope_packages }}"
+