Commit 751924a1 authored by Daniel Müller's avatar Daniel Müller
Browse files

Support mpstools on 64-bit systems

Added 32-bit compatibility packages for the mpstools toolchain when on 64-bit system.
parent 6b6ac60d
......@@ -17,6 +17,10 @@
install_recommends: false
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
become: true
unarchive:
......@@ -49,4 +53,3 @@
src: .sn
dest: "/home/{{ vm_user }}"
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment