ansible-base/roles/auto_reboot
2020-05-15 22:22:26 +02:00
..
defaults First commit 2020-05-15 22:22:26 +02:00
handlers First commit 2020-05-15 22:22:26 +02:00
meta First commit 2020-05-15 22:22:26 +02:00
tasks First commit 2020-05-15 22:22:26 +02:00
README.md First commit 2020-05-15 22:22:26 +02:00

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.