diff --git a/lib/ansible/modules/reboot.py b/lib/ansible/modules/reboot.py index fbeca0271b7..f4d029b68b6 100644 --- a/lib/ansible/modules/reboot.py +++ b/lib/ansible/modules/reboot.py @@ -121,6 +121,10 @@ EXAMPLES = r''' reboot_command: launchctl reboot userspace boot_time_command: uptime | cut -d ' ' -f 5 +- name: Reboot machine and send a message + ansible.builtin.reboot: + msg: "Rebooting machine in 5 seconds" + ''' RETURN = r'''