Use lineinfile instead of calling out to dpkg

This commit is contained in:
Salt 2020-07-05 08:56:35 -05:00
parent 4b9ea3b3f6
commit 8946e7284f

View File

@ -4,8 +4,10 @@
- name: Configure system packages - name: Configure system packages
block: block:
- name: Enable i386 architecture - name: Enable i386 architecture
command: /usr/bin/dpkg --add-architecture i386 lineinfile:
changed_when: no dest: /var/lib/dpkg/arch
line: i386
create: yes
- name: Add repo keys - name: Add repo keys
apt_key: apt_key:
keyserver: 'keyserver.ubuntu.com' keyserver: 'keyserver.ubuntu.com'