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
block:
- name: Enable i386 architecture
command: /usr/bin/dpkg --add-architecture i386
changed_when: no
lineinfile:
dest: /var/lib/dpkg/arch
line: i386
create: yes
- name: Add repo keys
apt_key:
keyserver: 'keyserver.ubuntu.com'