Nemo 88d8ffe8c1 OpenBSD updates 2020-08-26 19:24:04 +02:00
defaults Add dist-upgrade in Debian upgrade cmd and rename host template 2020-07-10 20:06:44 +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 OpenBSD updates 2020-08-26 19:24:04 +02:00
vars OpenBSD updates 2020-08-26 19:24:04 +02:00 First commit 2020-05-15 22:22:26 +02:00

Ansible Role: auto upgrade

This role defines a contask to auto-upgrade a GNU/Linux server.



Role Variables

All variables and default values are defined in defaults/main.yml :

# Cron task scheduling for auto upgrade
cron_upgrade_minute: "0"
cron_upgrade_hour: "2"
cron_upgrade_day: "*"
cron_upgrade_month: "*"
cron_upgrade_weekday: "*"

# Set to true if you want to enable auto upgrade
auto_upgrade: 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

# Default upgrade task configured for Debian
cron_upgrade_job: export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin; export TERM=rxvt-unicode-256color; apt-get -q update && apt-get -q -y upgrade && apt-get -q -y autoremove

WARNING : by default, the cron_upgrade_job is configured for Debian family distribution, you need to change the value if you are using another OS.



Example Playbook

- hosts: all
    - auto_upgrade



Author Information

This role was created in 2020 by Nemo.