ansible: Install linux-headers on standalone (root) nodes
authorKienan Stewart <kstewart@efficios.com>
Thu, 22 Jun 2023 16:01:12 +0000 (12:01 -0400)
committerKienan Stewart <kstewart@efficios.com>
Thu, 22 Jun 2023 16:01:12 +0000 (12:01 -0400)
Required for lttng-tools rootbuild jobs

Change-Id: Id9c9cd6ae4874dcce41190bf42e4d7067be4d745

automation/ansible/roles/common-node/tasks/setup-Debian.yml

index e390f9de2bd5073d634806da86e867791c880bd2..f1049a11777d3084d19e5ca07d7468eeee45f165 100644 (file)
@@ -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
This page took 0.023328 seconds and 4 git commands to generate.