You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
4 years ago
6 years ago
123456789101112131415161718192021222324
  1. ---
  2. - name: check if i386 is enabled
  3. command: dpkg --print-foreign-architectures
  4. register: result_i386_check
  5. changed_when: not "i386" in result_i386_check.stdout_lines
  6. - name: enable i386 architecture
  7. command: dpkg --add-architecture i386
  8. when: result_i386_check.changed
  9. - name: update apt cache after enabling i386
  10. apt:
  11. update_cache: yes
  12. when: result_i386_check.changed
  13. - name: install multiarch libraries
  14. apt:
  15. pkg:
  16. - lib32stdc++6
  17. - lib32z1
  18. - lib32gcc1
  19. - libc6:i386
  20. when: ansible_architecture == "x86_64"