--- - name: Register debian unstable for apt copy: dest: "/etc/apt/sources.list.d/unstable.list" owner: root group: root mode: "u=rw,g=r,o=r" content: "deb http://deb.debian.org/debian/ unstable main" notify: update apt cache - name: Restrict unstable for apt copy: dest: "/etc/apt/preferences.d/unstable" owner: root group: root mode: "u=rw,g=r,o=r" content: | Package: * Pin: release a=unstable Pin-Priority: 90 notify: update apt cache