|
|
@@ -1 +1,20 @@ |
|
|
|
--- |
|
|
|
|
|
|
|
- name: Check if i386 is enabled |
|
|
|
shell: dpkg --print-foreign-architectures | grep i386 |
|
|
|
register: result_i386_check |
|
|
|
changed_when: result_i386_check.rc == 1 |
|
|
|
failed_when: result_i386_check.rc > 1 |
|
|
|
|
|
|
|
- name: Enable i386 architecture |
|
|
|
command: dpkg --add-architecture i386 |
|
|
|
when: result_i386_check.rc == 1 |
|
|
|
|
|
|
|
- name: install multiarch libraries |
|
|
|
apt: |
|
|
|
pkg: "{{ item }}" |
|
|
|
with_items: |
|
|
|
- lib32stdc++6 |
|
|
|
- lib32z1 |
|
|
|
- lib32gcc1 |
|
|
|
when: ansible_architecture == "x86_64" |