--- /dev/null
+---
+# Include variables and define needed variables.
+- name: Include OS-specific variables.
+ include_vars: "{{ ansible_os_family }}.yml"
+
+- name: Define common_packages.
+ set_fact:
+ common_packages: "{{ __common_packages | list }}"
+ when: common_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 common packages are installed.
+ apt: "name={{ item }} state=installed"
+ with_items: common_packages
--- /dev/null
+---
+__common_packages:
+ - gcc-aarch64-linux-gnu
+ - gcc-powerpc64le-linux-gnu
+ - gcc-arm-linux-gnueabihf
+ - gcc-powerpc-linux-gnu