An open API service indexing awesome lists of open source software.

https://github.com/derjd/ansible-reboot

Ansible role rebooting node only if necessary
https://github.com/derjd/ansible-reboot

ansible ansible-role reboot reboot-node role

Last synced: 2 months ago
JSON representation

Ansible role rebooting node only if necessary

Awesome Lists containing this project

README

        

reboot
=========

Reboot node if necessary.

Requirements
------------

none so far.

Role Variables
--------------

| Variable | Type | Default | Description |
| -------- | ---- | ------- | ----------- |
| `reboot_test_command` | String | `whoami` | Command to check if node is ready after being reachable again. |
| `reboot_uptime_days` | Number | None | If this is set, nodes with higher uptime than this value will be rebooted |
Dependencies
------------

none so far.

Example Playbook
----------------

* basic example:
```
---
- hosts: servers
vars:
reboot_uptime_days: 30
tasks:
- package: upgrade=full update_cache=yes
- include_role: name=derJD.reboot
```

License
-------

BSD

Author Information
------------------

[derJD](https://github.com/derJD/)