apt: "name={{ common_node_packages }} state=present"
- name: Install linux headers
- when: inventory_hostname in groups['node_standalone']
+ when: inventory_hostname in groups['node_standalone']|default([])
block:
- name: Install i386 linux headers Debian
when: ansible_architecture == 'i386' and ansible_distribution == 'Debian'
--- /dev/null
+---
+compilers_legacy_install: true
+compilers_legacy_packages:
+ - gcc-4.8
+ - g++-4.8
\ No newline at end of file
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
+ - "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
---
-- name: Add sources for gcc 4.8
- when: ansible_distribution == 'Debian'
- ansible.builtin.apt_repository:
- repo: 'deb [trusted=yes] http://archive.debian.org/debian jessie main'
+- name: Install legacy compilers
+ block:
+ - name: Add sources for gcc 4.8
+ when: ansible_distribution == 'Debian'
+ ansible.builtin.apt_repository:
+ repo: 'deb [trusted=yes] http://archive.debian.org/debian jessie main'
+ state: "{{compilers_legacy_install|ternary('present', 'absent')}}"
+ - name: Install legacy compiler packages
+ when: compilers_legacy_install
+ ansible.builtin.apt:
+ name: "{{compilers_legacy_packages}}"
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=86400
- clang-tidy-14
- clang-tidy-15
- bear
- # Requires snapshot source
- - gcc-4.8
- - g++-4.8
--- /dev/null
+---
+compilers_packages:
+ - gcc
+ - gcc-11
+ - gcc-12
+ - gcc-13
+ - g++
+ - g++-11
+ - g++-12
+ - g++-13
+ - clang
+ - clang-14
+ - clang-15
+ - clang-16
+ - libclang-dev
+ - libclang-14-dev
+ - libclang-15-dev
+ - libclang-16-dev
+ - clang-format
+ - clang-format-14
+ - clang-format-15
+ - clang-format-16
+ - clang-tidy
+ - clang-tidy-14
+ - clang-tidy-15
+ - clang-tidy-16
+ - bear
--- /dev/null
+---
+lttng_modules_checkout_repo: true
\ No newline at end of file
when: ansible_os_family == 'Suse'
- name: checkout repo
+ when: jenkins_user|bool and lttng_modules_checkout_repo
git: repo=git://git-mirror.internal.efficios.com/git/linux-all.git
dest=/home/jenkins/gitcache/linux-stable.git
bare=yes