upgrade task notifies for reboot
This commit is contained in:
parent
ac883d33df
commit
4536536f24
@ -8,8 +8,15 @@
|
|||||||
- name: update package index on all machines
|
- name: update package index on all machines
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
notify: reboot
|
||||||
|
|
||||||
- name: Upgrade all packages to latest version
|
- name: Upgrade all packages to latest version
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: "*"
|
name: "*"
|
||||||
state: latest
|
state: latest
|
||||||
|
notify: reboot
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- name: reboot
|
||||||
|
ansible.builtin.reboot:
|
||||||
|
test_command: whoami
|
||||||
|
Loading…
Reference in New Issue
Block a user