How to install x86 architecture for Java using Ansible

I am doing something like: dpkg --add-architecture i386using the command module in Ansible. But I want to use the Ansible core module to achieve it.

apt has the parameter "dpkg_options". But I did not have time to install this package.

Does anyone have any ideas?

+4
source share
1 answer

This should work for you.

# 32-bit dependencies for Android binaries
- lineinfile: dest=/var/lib/dpkg/arch line="amd64" create=yes
- lineinfile: dest=/var/lib/dpkg/arch line="i386" create=yes
  register: add_i386
- apt: name={{item}} update_cache={{add_i386.changed}}
  with_items: ['libc6:i386', 'libstdc++6:i386', 'zlib1g:i386']
+4
source

Source: https://habr.com/ru/post/1584431/


All Articles