ansible-infra/roles/apt_update_and_upgrade/tasks/main.yaml

14 lines
332 B
YAML
Raw Normal View History

- name: update, upgrade and potentially reboot
become: true
block:
- name: apt-get update
ansible.builtin.apt:
update-cache: true
- name: apt-get dist-upgrade
ansible.builtin.apt:
upgrade: dist
register: apt_update_and_upgrade__upgrade_result
notify:
- reboot the system