From fbd55a9b0586ea4e1bdedf7b58ff36fa35d34d6d Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Thu, 22 Jun 2023 12:01:12 -0400 Subject: [PATCH] ansible: Install linux-headers on standalone (root) nodes Required for lttng-tools rootbuild jobs Change-Id: Id9c9cd6ae4874dcce41190bf42e4d7067be4d745 --- .../ansible/roles/common-node/tasks/setup-Debian.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/automation/ansible/roles/common-node/tasks/setup-Debian.yml b/automation/ansible/roles/common-node/tasks/setup-Debian.yml index e390f9d..f1049a1 100644 --- a/automation/ansible/roles/common-node/tasks/setup-Debian.yml +++ b/automation/ansible/roles/common-node/tasks/setup-Debian.yml @@ -4,3 +4,15 @@ - name: Ensure common_node packages are installed. apt: "name={{ common_node_packages }} state=present" + +- name: Install linux headers + when: inventory_hostname in groups['node_standalone'] + block: + - name: Install i386 linux headers Debian + when: ansible_architecture == 'i386' and ansible_distribution == 'Debian' + apt: + name: ['linux-headers-686', 'linux-headers-686-pae'] + - name: Install linux headers Ubuntu + when: ansible_distribution == 'Ubuntu' + apt: + name: linux-headers-generic -- 2.34.1