--- - hosts: local vars: release: jammy tasks: - name: wine (add architecture) shell: cmd: dpkg --add-architecture i386 - name: install software-properties-common deb ansible.builtin.apt: pkg: - software-properties-common - gtk2-engines-pixbuf - gtk2-engines-murrine - name: add Wine to sources.list ansible.builtin.apt_repository: repo: deb http://dl.winehq.org/wine-builds/ubuntu/ {{ release }} main state: present filename: wine-stable.list - name: install Wine deb ansible.builtin.apt: pkg: - wine update_cache: yes