---
jenkins_user: true
-packages_Debian:
- - autoconf
- - automake
- - bison
- - build-essential
- - clang
- - clang-tools
- - cloc
- - default-jdk-headless
- - flex
- - gettext
- - git
- - libssl-dev
- - libtap-harness-archive-perl
- - libtool-bin
- - lzop
- - pbzip2
- - sudo
- - vim
- - virtualenv
- hosts: all
roles:
- common
+ - common-node
- cross-compilers
- compilers
- babeltrace
- hosts: node_amd64
roles:
- common
+ - common-node
- cross-compilers
- compilers
- babeltrace
- hosts: node_arm64
roles:
- common
+ - common-node
- babeltrace
- liburcu
- lttng-ust
- hosts: node_armhf
roles:
- common
+ - common-node
- babeltrace
- liburcu
- lttng-ust
- hosts: node_el
roles:
- common
+ - common-node
- babeltrace
- liburcu
- lttng-ust
- hosts: node_i386
roles:
- common
+ - common-node
- babeltrace
- liburcu
- lttng-ust
- hosts: node_ppc64el
roles:
- common
+ - common-node
- babeltrace
- liburcu
- lttng-ust
- hosts: node_sles
roles:
- common
+ - common-node
- babeltrace
- liburcu
- lttng-ust
- hosts: node_standalone
roles:
- common
+ - common-node
- cross-compilers
- babeltrace
- liburcu
--- /dev/null
+---
+# Include variables and define needed variables.
+- name: Include OS-specific variables.
+ include_vars: "{{ item }}"
+ with_first_found:
+ - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml"
+ - "{{ 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 in ['RedHat', 'Rocky']
+
+- include: setup-Debian.yml
+ when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+ when: ansible_os_family == 'Alpine'
+
+- include: setup-Suse.yml
+ when: ansible_os_family == 'Suse'
--- /dev/null
+---
+- name: Update apk cache.
+ apk: update_cache=yes
+
+- name: Ensure common_node packages are installed.
+ apk: "name={{ common_node_packages }} state=present"
--- /dev/null
+---
+- name: Update apt cache.
+ apt: update_cache=yes cache_valid_time=86400
+
+- name: Ensure common_node packages are installed.
+ apt: "name={{ common_node_packages }} state=present"
--- /dev/null
+---
+- name: Ensure common_node packages are installed.
+ dnf:
+ name: "{{ common_node_packages }}"
+ state: installed
+ install_weak_deps: false
--- /dev/null
+---
+- name: Ensure common_node patterns are installed.
+ zypper: "name={{ common_node_patterns }} type=pattern state=present update_cache=yes"
+
+- name: Ensure common_node packages are installed.
+ zypper: "name={{ common_node_packages }} type=package state=present update_cache=yes"
--- /dev/null
+---
+common_node_packages:
+ - alpine-sdk
+ - autoconf
+ - automake
+ - bash
+ - bison
+ - clang
+ - cloc
+ - coreutils
+ - curl
+ - flex
+ - gettext
+ - git
+ - htop
+ - jq
+ - libtool
+ - openjdk11
+ - openssl-dev
+ - perl
+ - py-virtualenv
+ - rsync
+ - shadow
+ - sudo
+ - tree
+ - vim
--- /dev/null
+---
+common_node_packages:
+ - autoconf
+ - automake
+ - bison
+ - clang
+ - curl
+ - emacs-nox
+ - flex
+ - gcc
+ - gcc-c++
+ - gettext
+ - git
+ - java-11-openjdk-devel
+ - java-11-openjdk-headless
+ # - jq
+ - libtool
+ - lzop
+ - make
+ - openssh-server
+ - openssl-devel
+ - perl-Test-Harness
+ - psmisc
+ - python-virtualenv
+ - rsync
+ - sudo
+ - tree
+ - vim
--- /dev/null
+---
+common_node_packages:
+ - autoconf
+ - automake
+ - bison
+ - build-essential
+ - clang
+ - clang-tools
+ - cloc
+ - curl
+ - default-jdk-headless
+ - emacs-nox
+ - flex
+ - gettext
+ - git
+ - htop
+ - jq
+ - libssl-dev
+ - libtap-harness-archive-perl
+ - libtool-bin
+ - lzop
+ - openssh-server
+ - pbzip2
+ - psmisc
+ - rsync
+ - sudo
+ - tree
+ - vim
+ - virtualenv
--- /dev/null
+---
+common_node_packages:
+ - autoconf
+ - automake
+ - bison
+ - clang
+ - curl
+ - emacs-nox
+ - flex
+ - gcc
+ - gcc-c++
+ - gettext
+ - git
+ - htop
+ - java-11-openjdk-devel
+ - java-11-openjdk-headless
+ - jq
+ - libtool
+ - lzop
+ - make
+ - openssh-server
+ - openssl-devel
+ - perl-Test-Harness
+ - psmisc
+ - python3-virtualenv
+ - rsync
+ - sudo
+ - tree
+ - vim
--- /dev/null
+RedHat.yml
\ No newline at end of file
--- /dev/null
+---
+common_node_patterns:
+ - base
+ - devel_basis
+
+common_node_packages:
+ - autoconf
+ - automake
+ - bison
+ - curl
+ - flex
+ - gettext-runtime
+ - git-core
+ - java-11-openjdk-devel
+ - java-11-openjdk-headless
+ - jq
+ - libopenssl-devel
+# - libtap-harness-archive-perl
+ - libtool
+ - openssh
+ - psmisc
+# - python-virtualenv
+ - rsync
+ - sudo
+# - tree
+ - vim
--- /dev/null
+---
+common_node_patterns:
+ - base
+ - Minimal
+ - Basis-Devel
+
+common_node_packages:
+ - autoconf
+ - automake
+ - bison
+ - curl
+ - flex
+ - gettext-runtime
+ - git-core
+ - java-11-openjdk-devel
+ - java-11-openjdk-headless
+# - jq
+ - libopenssl-devel
+# - libtap-harness-archive-perl
+ - libtool
+ - openssh
+ - psmisc
+# - python-virtualenv
+ - sudo
+ - tree
+ - vim
apt: update_cache=yes cache_valid_time=86400
- name: Ensure common packages are installed.
- apt: "name={{ common_packages + packages_Debian|default([]) }} state=present"
-
-- name: Debug common packages
- debug:
- msg: "{{ common_packages + packages_Debian|default([]) }}"
+ apt: "name={{ common_packages }} state=present"
---
common_packages:
- - alpine-sdk
- - autoconf
- - automake
- bash
- - bison
- - clang
- - cloc
- coreutils
- curl
- - flex
- - gettext
- git
- htop
- - jq
- - libtool
- - openjdk11
- - openssl-dev
- - perl
- py-virtualenv
- rsync
- shadow
---
common_packages:
- - autoconf
- - automake
- - bison
- - clang
- curl
- emacs-nox
- - flex
- - gcc
- - gcc-c++
- - gettext
- git
- - java-11-openjdk-devel
- - java-11-openjdk-headless
- # - jq
- - libtool
- lzop
- - make
- openssh-server
- - openssl-devel
- - perl-Test-Harness
- psmisc
- python-virtualenv
- rsync
---
common_packages:
- - autoconf
- - automake
- - bison
- - clang
- curl
- emacs-nox
- - flex
- - gcc
- - gcc-c++
- - gettext
- git
- htop
- - java-11-openjdk-devel
- - java-11-openjdk-headless
- - jq
- - libtool
- lzop
- - make
- openssh-server
- - openssl-devel
- - perl-Test-Harness
- psmisc
- python3-virtualenv
- rsync
---
common_patterns:
- base
- - devel_basis
common_packages:
- - autoconf
- - automake
- - bison
- curl
- - flex
- - gettext-runtime
- git-core
- - java-11-openjdk-devel
- - java-11-openjdk-headless
- - jq
- - libopenssl-devel
-# - libtap-harness-archive-perl
- - libtool
- openssh
- psmisc
-# - python-virtualenv
- rsync
- sudo
-# - tree
- vim
common_patterns:
- base
- Minimal
- - Basis-Devel
common_packages:
- - autoconf
- - automake
- - bison
- curl
- - flex
- - gettext-runtime
- git-core
- - java-11-openjdk-devel
- - java-11-openjdk-headless
-# - jq
- - libopenssl-devel
-# - libtap-harness-archive-perl
- - libtool
- openssh
- psmisc
-# - python-virtualenv
- sudo
- tree
- vim