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.
Nemo 88d8ffe8c1 OpenBSD updates 3 years ago
defaults Add dist-upgrade in Debian upgrade cmd and rename host template 3 years ago
handlers First commit 3 years ago
meta First commit 3 years ago
tasks OpenBSD updates 3 years ago
vars OpenBSD updates 3 years ago First commit 3 years ago

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.