Skip to content
Snippets Groups Projects
Commit 751924a1 authored by Daniel Müller's avatar Daniel Müller :speech_balloon:
Browse files

Support mpstools on 64-bit systems

Added 32-bit compatibility packages for the mpstools toolchain when on 64-bit system.
parent 6b6ac60d
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
install_recommends: false install_recommends: false
force_apt_get: true force_apt_get: true
- name: Install 32-bit compatibility packages when on 64-bit system
import_tasks: x64-compat.yml
when: ansible_architecture != "i386"
- name: Install toolchain - name: Install toolchain
become: true become: true
unarchive: unarchive:
...@@ -49,4 +53,3 @@ ...@@ -49,4 +53,3 @@
src: .sn src: .sn
dest: "/home/{{ vm_user }}" dest: "/home/{{ vm_user }}"
force: "{{ overwrite_config | default(false) }}" force: "{{ overwrite_config | default(false) }}"
---
# roles/mpstools/x64-compat
- name: Check if i386 packages are enabled
become: true
lineinfile:
dest: /var/lib/dpkg/arch
line: i386
state: present
create: true
check_mode: yes
register: chk_i386
- name: Add i386 arch
become: true
command: dpkg --add-architecture i386
when: chk_i386.changed
- name: Update apt cache
become: true
apt:
update_cache: true
when: chk_i386.changed
- name: Install required packages
become: true
apt:
name:
- libc6:i386
- libstdc++6:i386
- libx11-6:i386
- libncurses5:i386
install_recommends: false
state: present
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment