upgrade task notifies for reboot

This commit is contained in:
Ibrahim Mkusa 2024-09-04 10:50:19 -04:00
parent ac883d33df
commit 4536536f24

View File

@ -8,8 +8,15 @@
- name: update package index on all machines
ansible.builtin.apt:
update_cache: yes
notify: reboot
- name: Upgrade all packages to latest version
ansible.builtin.apt:
name: "*"
state: latest
notify: reboot
handlers:
- name: reboot
ansible.builtin.reboot:
test_command: whoami