--- - name: Disable installation DVD as a source ansible.builtin.lineinfile: path: /etc/apt/sources.list regexp: "^deb cdrom:" state: absent - name: Enable additional Debian repos ansible.builtin.deb822_repository: name: "{{ item.name }}" types: - deb - deb-src uris: "{{ item.uris }}" suites: "{{ item.suites }}" components: - contrib - non-free state: present loop: - name: contrib-non_free uris: http://ftp.sk.debian.org/debian/ suites: "{{ ansible_facts.distribution_release }}" - name: security-contrib-non_free uris: http://security.debian.org/debian-security suites: "{{ ansible_facts.distribution_release }}-security" - name: updates-contrib-non_free uris: http://ftp.sk.debian.org/debian/ suites: "{{ ansible_facts.distribution_release }}-updates"