- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}.yml"
-- name: Define common_packages.
+- name: Define cross-compilers_packages.
set_fact:
- common_packages: "{{ __common_packages | list }}"
- when: common_packages is not defined
+ cross-compilers_packages: "{{ __cross-compilers_packages | list }}"
+ when: cross-compilers_packages is not defined
# Setup/install tasks.
- include: setup-RedHat.yml
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=86400
-- name: Ensure common packages are installed.
+- name: Ensure cross-compilers packages are installed.
apt: "name={{ item }} state=installed"
- with_items: common_packages
+ with_items: cross-compilers_packages
---
-- name: Ensure common packages are installed.
+- name: Ensure cross-compilers packages are installed.
yum:
name: "{{ item }}"
state: installed
- with_items: common_packages
+ with_items: cross-compilers_packages
---
-__common_packages:
+__cross-compilers_packages:
- gcc-aarch64-linux-gnu
- gcc-powerpc64le-linux-gnu
- gcc-arm-linux-gnueabihf
---
# TODO
-__common_packages:
- - java-1.7.0-openjdk-headless
+__cross-compilers_packages: