Update role

Install system and package updates.

Requires

The Ansible Update role supports these package managers:

  • apt (Debian, Ubuntu)
  • yum (CentOS)
  • zypper (SLES)
  • dnf (AlmaLinux, RHEL)

Usage

Configure the role.

vars.yml

update: true
reboot_allowed: true

And include it in your playbook.

- hosts: update
  roles:
  - role: update