reboot
Collection: builtin
Full Name: parallax.builtin.reboot
Aliases: ansible.builtin.reboot, reboot
Synopsis
Manage reboot
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| pre_reboot_delay | int | 0 | Seconds to wait before reboot | |
| post_reboot_delay | int | 0 | Seconds to wait after the reboot command was successful | |
| reboot_timeout | int | 600 | Maximum seconds to wait for machine to reboot and respond to a test command | |
| connect_timeout | int | 5 | Maximum seconds to wait for a successful connection to the managed hosts before trying again | |
| test_command | string | whoami | Command to run on the rebooted host and expect success from to determine the machine is ready for further tasks | |
| msg | string | Reboot initiated by Ansible | Message to display to users before reboot | |
| search_paths | list | [/sbin /usr/sbin /usr/local/sbin /bin /usr/bin /usr/local/bin] | Paths to search on the remote machine for the shutdown command | |
| boot_time_command | string | cat /proc/sys/kernel/random/boot_id | Command to run that returns a unique string indicating the last time the system was booted | |
| reboot_command | string | shutdown -r now | Command to run to reboot the machine |
Example
- name: Example reboot task
reboot:
pre_reboot_delay: 0
post_reboot_delay: 0