--- - 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: "{{ item.types }}" uris: "{{ item.uris }}" suites: "{{ item.suites }}" components: - contrib - non-free state: present loop: - name: deb-contrib-non_free types: deb uris: http://ftp.sk.debian.org/debian/ suites: "{{ ansible_facts.distribution_release }}" - name: deb_src-contrib-non_free types: deb-src uris: http://ftp.sk.debian.org/debian/ suites: "{{ ansible_facts.distribution_release }}" - name: deb-security-contrib-non_free types: deb uris: http://security.debian.org/debian-security suites: "{{ ansible_facts.distribution_release }}-security" - name: deb_src-security-contrib-non_free types: deb-src uris: http://security.debian.org/debian-security suites: "{{ ansible_facts.distribution_release }}-security" - name: deb-updates-contrib-non_free types: deb uris: http://ftp.sk.debian.org/debian/ suites: "{{ ansible_facts.distribution_release }}-updates" - name: deb_src-updates-contrib-non_free types: deb-src uris: http://ftp.sk.debian.org/debian/ suites: "{{ ansible_facts.distribution_release }}-updates"