mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 19:50:25 -07:00
Having an uptime fact allows you to check after a reboot whether the system was effectively rebooted. ```yaml - name: Safeguard - Was system properly rebooted ? action: fail msg="System was not properly rebooted" when: ansible_uptime > 900 ``` This patch has been tested on Linux, Solaris and HP-UX. |
||
---|---|---|
.. | ||
__init__.py | ||
basic.py | ||
ec2.py | ||
facts.py | ||
gce.py | ||
known_hosts.py | ||
rax.py | ||
redhat.py | ||
urls.py |