From b8db05f13e0fee994f1ffbd3004c3ce766ea10d1 Mon Sep 17 00:00:00 2001 From: Aditya Putta Date: Tue, 1 Aug 2023 10:24:45 -0500 Subject: [PATCH] Update reboot module to include message option (#81374) --- lib/ansible/modules/reboot.py | 4 ++++ 1 file changed, 4 insertions(+) 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'''