浏览代码

role creation

master
父节点
当前提交
2a342133b1
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. +19
    -0
      tasks/main.yml

+ 19
- 0
tasks/main.yml 查看文件

@@ -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"

正在加载...
取消
保存