derjd.reboot

Reboot

Restart the node if needed.

Requirements

None at this time.

Role Variables

Variable Type Default Description
reboot_test_command String whoami Command to verify if the node is ready after it becomes reachable again.
reboot_uptime_days Number None If set, nodes with more uptime than this value will be restarted.

Dependencies

None at this time.

Example Playbook

  • Simple 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

Informazioni sul progetto

Rebooting node only if necessary.

Installa
ansible-galaxy install derjd.reboot
Licenza
Unknown
Download
889
Proprietario