stuvusIT.upgrade
Upgrade
This is a simple Ansible role designed to upgrade hosts, based on the work of Guillaume Subiron. It updates apt
, gem
, and npm
packages, if those package managers are installed.
Role Variables
Option | Type | Default | Description | Required |
---|---|---|---|---|
upgrade_restart_services |
boolean | True |
Automatically restarts services when necessary (e.g., if shared libraries are updated). | N |
upgrade_restart_services_ignore |
list | [] |
A list of services that should not be restarted. Note: dbus is always included. |
N |
upgrade_do_autoremove |
boolean | True |
Automatically removes packages that are no longer needed (e.g., old kernels). | N |
upgrade_do_autoclean |
boolean | True |
Cleans up local package files that can't be downloaded anymore, if enabled. | N |
upgrade_gem |
boolean | True |
Skips gem upgrade routines if disabled. | N |
upgrade_npm |
boolean | True |
Skips npm (Node) upgrade routines if disabled. | N |
Note: You cannot add systemd to the ignored services list. The command systemctl daemon-reexec
will always run if a systemd library dependency changes.
License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.