ansible: Add support for SLES in i386-libs role
authorKienan Stewart <kstewart@efficios.com>
Wed, 31 Jan 2024 16:20:02 +0000 (11:20 -0500)
committerKienan Stewart <kstewart@efficios.com>
Fri, 2 Feb 2024 14:07:03 +0000 (09:07 -0500)
Change-Id: Ib2629466f055188fb1f5bd7dd0f41496f93775cd
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/libs-i386/tasks/main.yml
automation/ansible/roles/libs-i386/tasks/setup-Debian.yml
automation/ansible/roles/libs-i386/vars/Suse.yml [new file with mode: 0644]

index 1853b687f142e8508785950728e4881e83fd521d..069715162d47d3436896262fec4308b2bfb17152 100644 (file)
@@ -8,6 +8,9 @@
     libs_i386_packages: "{{ __libs_i386_packages | list }}"
   when: libs_i386_packages is not defined
 
-# Setup/install tasks.
 - include: setup-Debian.yml
   when: ansible_os_family == 'Debian'
+
+# Install libs from the default package manager
+- ansible.builtin.package:
+    name: "{{libs_i386_packages}}"
index e36836c8639c09b3b669c616567febf94c150ba1..d9da14192b924d4de1d0ef20755aaec75fc528fa 100644 (file)
@@ -12,6 +12,3 @@
 - name: Update apt cache.
   apt: update_cache=yes
   when: dpkg_i386_is_enabled.rc == 1
-
-- name: Ensure libs-i386 packages are installed.
-  apt: "name={{ libs_i386_packages }} state=present"
diff --git a/automation/ansible/roles/libs-i386/vars/Suse.yml b/automation/ansible/roles/libs-i386/vars/Suse.yml
new file mode 100644 (file)
index 0000000..495b75c
--- /dev/null
@@ -0,0 +1,7 @@
+---
+__libs_i386_packages:
+  - liblzma5-32bit
+  - libnuma1-32bit
+  - libpopt0-32bit
+  - libxml2-2-32bit
+  - zlib-devel-32bit
This page took 0.024565 seconds and 4 git commands to generate.