ansible/ansible — pull request #7670 by dagwieers (2014-06-05 09:58:24+00:00)
Title: Added cross-platform uptime fact

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.