Skip to main content

Autoupgrade Role

Configure automatic package upgrades on Debian or Red Hat systems.


Variables​

VariableTypeOptionsDefaultDescription
autoupgrade_service_namestring---systemd service or timer unit name
autoupgrade_service_statestringreloaded, restarted, started, stoppeddesired state of the autoupgrade service
autoupgrade_service_enabledbooltrue, falsewhether the autoupgrade service is enabled at boot
autoupgrade_package_statestringpresent, absent, latestdesired state of autoupgrade packages
autoupgrade_package_listlist of string---list of packages to install for automatic upgrades
autoupgrade_config_pathstring---path to the autoupgrade configuration file
autoupgrade_auto_applybooltrue, falsetruewhether to automatically apply package upgrades
autoupgrade_upgrade_typestringdefault, securitydefaulttype of upgrades to apply
autoupgrade_rebootstringfalse, true, never, when-changed, when-needed{{ 'false' if ansible_facts['os_family'] == 'Debian' else 'never' }}reboot policy; use false or true on Debian and never, when-changed, or when-needed on Red Hat
autoupgrade_blacklistlist of string---[]list of packages excluded from automatic upgrades
autoupgrade_mail_reportstring---""email reporting frequency (e.g. on-change, always, only-on-error)
autoupgrade_mailstring---""recipient email address for upgrade reports