summaryrefslogtreecommitdiff
path: root/roles/apt-repo/backports/tasks/main.yml
blob: 20854816dcf125cfe922dfcb40eb1a7cb371e24b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
---
- name: add repository entry
  copy:
    content: |
      deb http://{{ apt_repo_providers[apt_repo_provider][(ansible_distribution | lower)] }}/{{ ansible_distribution | lower }} {{ ansible_distribution_release }}-backports {{ apt_repo_components | default(apt_repo_backports_components[(ansible_distribution | lower)]) | join(' ') }}
    dest: /etc/apt/sources.list.d/backports.list
  notify: update apt cache

- name: update apt cache
  meta: flush_handlers