---

- name: Backports deb822 sources list is installed
  ansible.builtin.template:
    src: '{{ ansible_distribution_release }}_backports.sources.j2'
    dest: /etc/apt/sources.list.d/backports.sources
    force: true
    mode: "0640"
  register: apt_backports_sources
  tags:
    - apt

- name: Apt update
  ansible.builtin.apt:
    update_cache: yes
  when: apt_backports_sources is changed
  tags:
    - apt
