--- /dev/null
+---
+# Include variables and define needed variables.
+- name: Include OS-specific variables.
+ include_vars: "{{ ansible_os_family }}.yml"
+
+- name: Define compilers_packages.
+ set_fact:
+ compilers_packages: "{{ __compilers_packages | list }}"
+ when: compilers_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 compilers packages are installed.
+ apk: "name={{ item }} state=present"
+ with_items: "{{ compilers_packages }}"
--- /dev/null
+---
+- name: Update apt cache.
+ apt: update_cache=yes cache_valid_time=86400
+
+- name: Ensure compilers packages are installed.
+ apt: "name={{ item }} state=present"
+ with_items: "{{ compilers_packages }}"