From: Kienan Stewart Date: Thu, 22 Jun 2023 16:01:12 +0000 (-0400) Subject: ansible: Install linux-headers on standalone (root) nodes X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fbd55a9b0586ea4e1bdedf7b58ff36fa35d34d6d;p=lttng-ci.git ansible: Install linux-headers on standalone (root) nodes Required for lttng-tools rootbuild jobs Change-Id: Id9c9cd6ae4874dcce41190bf42e4d7067be4d745 --- 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