ansible-role-backports/tasks/main.yml

16 lines
401 B
YAML
Raw Normal View History

2025-09-02 21:11:31 +02:00
- fail:
msg: "only supported on debian"
when: not ansible_distribution in ["Debian"]
2020-09-15 14:26:48 +02:00
2017-06-29 20:11:01 +02:00
2025-09-02 21:11:31 +02:00
- include_tasks: remove-obsolete-apt-lists.yml
- include_tasks: debian-12-or-earlier.yml
when: ansible_distribution_major_version|int <= 12
- include_tasks: debian-13-or-later.yml
when: ansible_distribution_major_version|int >= 13
2017-06-29 20:11:01 +02:00
2020-09-15 14:26:48 +02:00
2017-06-29 20:11:01 +02:00
- name: update apt cache
apt: update_cache=yes
changed_when: false