From: Kienan Stewart Date: Wed, 31 Jan 2024 16:20:02 +0000 (-0500) Subject: ansible: Add support for SLES in i386-libs role X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0c54f726b3d830ccbfa1e1d19aaebe8a6b17a187;p=lttng-ci.git ansible: Add support for SLES in i386-libs role Change-Id: Ib2629466f055188fb1f5bd7dd0f41496f93775cd Signed-off-by: Kienan Stewart --- diff --git a/automation/ansible/roles/libs-i386/tasks/main.yml b/automation/ansible/roles/libs-i386/tasks/main.yml index 1853b68..0697151 100644 --- a/automation/ansible/roles/libs-i386/tasks/main.yml +++ b/automation/ansible/roles/libs-i386/tasks/main.yml @@ -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}}" diff --git a/automation/ansible/roles/libs-i386/tasks/setup-Debian.yml b/automation/ansible/roles/libs-i386/tasks/setup-Debian.yml index e36836c..d9da141 100644 --- a/automation/ansible/roles/libs-i386/tasks/setup-Debian.yml +++ b/automation/ansible/roles/libs-i386/tasks/setup-Debian.yml @@ -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 index 0000000..495b75c --- /dev/null +++ b/automation/ansible/roles/libs-i386/vars/Suse.yml @@ -0,0 +1,7 @@ +--- +__libs_i386_packages: + - liblzma5-32bit + - libnuma1-32bit + - libpopt0-32bit + - libxml2-2-32bit + - zlib-devel-32bit