--- - 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 {{ debian_repository_mirror }} unstable main\n" 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: {{ debian_unstable_priority }} notify: update apt cache - name: Flush handlers for unstable repository meta: flush_handlers