Skip to content

Theme color

autoupgrade

Configure automatic package upgrades on Debian or Red Hat systems.

giftpilz0.general12 variables

Usage

playbook.yml
- hosts: all
roles:
- role: giftpilz0.general.autoupgrade

Variables

  • systemd service or timer unit name.

    Default{{ 'apt-daily-upgrade.timer' if ansible_facts['os_family'] == 'Debian' else 'dnf-automatic.timer' }}
  • desired state of the autoupgrade service.

    Choicesreloadedrestartedstartedstopped
    Defaultstarted
  • whether the autoupgrade service is enabled at boot.

    Defaulttrue
  • desired state of autoupgrade packages.

    Choicespresentabsentlatest
    Defaultpresent
  • list of packages to install for automatic upgrades.

    Default{{ ['unattended-upgrades'] if ansible_facts['os_family'] == 'Debian' else ['dnf-automatic'] }}
  • path to the autoupgrade configuration file.

    Default{{ '/etc/apt/apt.conf.d/20auto-upgrades' if ansible_facts['os_family'] == 'Debian' else '/etc/dnf/automatic.conf' }}
  • whether to automatically apply package upgrades.

    Defaulttrue
  • type of upgrades to apply.

    Choicesdefaultsecurity
    Defaultdefault
  • reboot when an upgrade requires it.

    Defaultfalse
  • list of packages excluded from automatic upgrades.

    Default[]
  • email reporting frequency (e.g. on-change, always, only-on-error).

    Default""
  • recipient email address for upgrade reports.

    Default""