You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
651 B
YAML

---
- name: Register debian backports for apt
copy:
dest: "/etc/apt/sources.list.d/backports.list"
owner: root
group: root
mode: "u=rw,g=r,o=r"
content: "deb {{ debian_repository_mirror }} {{ debian_backports_name }} main"
notify: update apt cache
- name: Restrict backports for apt
copy:
dest: "/etc/apt/preferences.d/backports"
owner: root
group: root
mode: "u=rw,g=r,o=r"
content: |
Package: *
Pin: release a={{ debian_backports_name }}
Pin-Priority: {{ debian_backports_priority }}
notify: update apt cache
- name: Flush handlers for backports repository
meta: flush_handlers