ansible: Install compilers on sles nodes
authorKienan Stewart <kstewart@efficios.com>
Thu, 25 Jan 2024 18:34:55 +0000 (13:34 -0500)
committerKienan Stewart <kstewart@efficios.com>
Fri, 2 Feb 2024 14:07:03 +0000 (09:07 -0500)
Change-Id: I1c487cc929ab661c091812b7ff6e9730e6bf648d
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/node_sles.yml
automation/ansible/roles/compilers/tasks/main.yml
automation/ansible/roles/compilers/tasks/setup-Suse.yml [new file with mode: 0644]
automation/ansible/roles/compilers/vars/Suse.yml

index 5ad9454f30a36d370f3e093718dd99038a7359d6..2c75e8897f237511cbcc59a4a726748890dce9aa 100644 (file)
@@ -2,6 +2,7 @@
   roles:
     - common
     - common-node
+    - compilers
     - babeltrace
     - liburcu
     - lttng-ust
index 77edc5b2bd8f2688138388a6120de56ed56a6e1d..099aa34183f1b57af519a49ada3b67fcd5a07e55 100644 (file)
@@ -17,3 +17,6 @@
 
 - include: setup-Alpine.yml
   when: ansible_os_family == 'Alpine'
+
+- include: setup-Suse.yml
+  when: ansible_os_family == 'Suse'
diff --git a/automation/ansible/roles/compilers/tasks/setup-Suse.yml b/automation/ansible/roles/compilers/tasks/setup-Suse.yml
new file mode 100644 (file)
index 0000000..6d93563
--- /dev/null
@@ -0,0 +1,3 @@
+---
+- name: Ensure common_node packages are installed.
+  zypper: "name={{ compilers_packages }} type=package state=present update_cache=yes"
index c12ad7563438f86c1d09ab253284ef7c2ae68fa3..ed46ff81de7703322996cd2328d6c3914034dd38 100644 (file)
@@ -1,2 +1,4 @@
 ---
-compilers_packages: []
+compilers_packages:
+  - gcc
+  - gcc-c++
This page took 0.024395 seconds and 4 git commands to generate.