2 - name: "Dist upgrade and optional reboot"
10 prompt: "Enter 'yes' to reboot"
15 - name: "apt update && apt dist-upgrade && apt clean && apt autoremove --purge"
18 cache_valid_time: 3600
24 - name: "Reboot server"
32 - name: wait for the server to reboot
33 local_action: wait_for host={{ inventory_hostname }}
38 when: last_result.changed