ansible/roles/common/tasks/debian-upgrade.yaml

26 lines
473 B
YAML

---
- name: Install source list
ansible.builtin.template:
src: stable-sources.list
dest: /etc/apt/sources.list
owner: root
group: root
mode: 0644
- name: Remove backports
ansible.builtin.file:
path: /etc/apt/sources.list.d/backports.list
state: absent
- name: update
ansible.builtin.apt:
update_cache: yes
- name: full-upgrade
ansible.builtin.apt:
upgrade: full
- name: autoremove
ansible.builtin.apt:
autoremove: yes