ansible-infra/playbooks/roles/apt_update_and_upgrade/tasks/main.yaml
June e3a29c422a
Some checks failed
/ Ansible Lint (push) Failing after 1m37s
convert two reboot tasks running on changed to handlers
This fixes ansible-lint no-handler complaints.
2024-12-01 04:38:07 +01:00

13 lines
332 B
YAML

- 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