ansible-roles/apt/tasks/backports.deb822.yml

29 lines
708 B
YAML
Raw Normal View History

2017-01-10 10:18:42 +01:00
---
- name: Backports deb822 sources list is installed
ansible.builtin.template:
2023-03-17 20:05:42 +01:00
src: '{{ ansible_distribution_release }}_backports.sources.j2'
dest: /etc/apt/sources.list.d/backports.sources
2017-01-10 10:18:42 +01:00
force: yes
mode: "0640"
2023-03-17 20:05:42 +01:00
register: apt_backports_sources
tags:
2019-06-21 10:18:54 +02:00
- apt
2017-01-10 10:18:42 +01:00
- name: Backports configuration
ansible.builtin.copy:
src: '{{ ansible_distribution_release }}_backports_preferences'
dest: /etc/apt/preferences.d/0-backports-defaults
2017-01-10 10:18:42 +01:00
force: yes
mode: "0640"
register: apt_backports_config
tags:
2019-06-21 10:18:54 +02:00
- apt
- name: Apt update
ansible.builtin.apt:
update_cache: yes
2023-03-17 20:05:42 +01:00
when: apt_backports_sources is changed or apt_backports_config is changed
tags:
2019-06-21 10:18:54 +02:00
- apt