arillso.system.reboot_info module – Checks if the system requires a reboot.
Note
This module is part of the arillso.system collection (version 1.0.5).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install arillso.system.
To use it in a playbook, specify: arillso.system.reboot_info.
New in arillso.system 0.0.2
Synopsis
This module checks if a system requires a reboot, typically after package updates.
Examples
- name: Check if system requires reboot
arillso.system.reboot_info:
register: reboot_status
- name: Display reboot requirement
debug:
msg: "System reboot required: {{ reboot_status.reboot }}"
- name: Reboot system if needed
reboot:
when: reboot_status.reboot
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Whether the system requires a reboot Returned: always |