--- - name: install deb files become: true ansible.builtin.apt: deb: "{{ item }}" loop: "{{ laptop_install_deb_url }}" when: laptop_install_deb_url is defined - name: install archived deb files ansible.builtin.unarchive: src: "{{ item }}" dest: /usr/local/bin remote_src: yes loop: "{{ laptop_install_deb_url_archived }}" when: laptop_install_deb_url_archived is defined ...