You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 years ago | |
---|---|---|
.. | ||
defaults | 3 years ago | |
handlers | 3 years ago | |
meta | 3 years ago | |
tasks | 3 years ago | |
vars | 3 years ago | |
README.md | 3 years ago |
README.md
Ansible Role: auto reboot
This role defines a contask to auto-reboot a GNU/Linux server.
Requirements
None.
Role Variables
All variables and default values are defined in defaults/main.yml
:
# Cron task scheduling for auto reboot
cron_reboot_minute: "0"
cron_reboot_hour: "3"
cron_reboot_day: "*"
cron_reboot_month: "*"
cron_reboot_weekday: "*"
# Set to true if you want to enable auto reboot
auto_reboot: false
# Name of the cron service and cron package (depends on your OS, can be cron, cronie, crond...)
cron_service_name: cron
cron_package: cron
Dependencies
None.
Example Playbook
- hosts: all
roles:
- auto_reboot
License
BSD
Author Information
This role was created in 2020 by Nemo.