---
# Include variables and define needed variables.
- name: Include OS-specific variables.
- include_vars: "{{ ansible_os_family }}.yml"
-
-- name: Define cross_compilers_packages.
- set_fact:
- cross_compilers_packages: "{{ __cross_compilers_packages | list }}"
- when: cross_compilers_packages is not defined
+ include_vars: "{{ item }}"
+ with_first_found:
+ - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
+ - "{{ ansible_distribution }}.yml"
+ - "{{ ansible_os_family }}.yml"
# Setup/install tasks.
- include: setup-RedHat.yml
- when: ansible_os_family == 'RedHat'
+ when: ansible_os_family in ['RedHat', 'Rocky']
- include: setup-Debian.yml
when: ansible_os_family == 'Debian'
---
-# TODO
-__cross_compilers_packages: []
+cross_compilers_packages: []
+++ /dev/null
----
-__cross_compilers_packages:
- - gcc-5-aarch64-linux-gnu
- - gcc-5-arm-linux-gnueabihf
- - gcc-5-i686-linux-gnu
- - gcc-5-powerpc64le-linux-gnu
- - gcc-5-powerpc-linux-gnu
- - gcc-5-s390x-linux-gnu
- - gcc-aarch64-linux-gnu
- - gcc-arm-linux-gnueabihf
- - gcc-i686-linux-gnu
- - gcc-powerpc64le-linux-gnu
- - gcc-powerpc-linux-gnu
- - gcc-s390x-linux-gnu
---
-# TODO
-__cross_compilers_packages:
+cross_compilers_packages:
---
-__cross_compilers_packages:
+cross_compilers_packages:
- gcc-aarch64-linux-gnu
- gcc-powerpc64le-linux-gnu
- gcc-arm-linux-gnueabihf
--- /dev/null
+---
+cross_compilers_packages:
+ - gcc-5-aarch64-linux-gnu
+ - gcc-5-arm-linux-gnueabihf
+ - gcc-5-i686-linux-gnu
+ - gcc-5-powerpc64le-linux-gnu
+ - gcc-5-powerpc-linux-gnu
+ - gcc-5-s390x-linux-gnu
+ - gcc-aarch64-linux-gnu
+ - gcc-arm-linux-gnueabihf
+ - gcc-i686-linux-gnu
+ - gcc-powerpc64le-linux-gnu
+ - gcc-powerpc-linux-gnu
+ - gcc-s390x-linux-gnu
--- /dev/null
+---
+cross_compilers_packages:
+ - gcc-aarch64-linux-gnu
+ - gcc-arm-linux-gnueabihf
+ - gcc-i686-linux-gnu
+ - gcc-powerpc64le-linux-gnu
+ - gcc-powerpc-linux-gnu
+ - gcc-riscv64-linux-gnu
+ - gcc-s390x-linux-gnu