robertdebock.auto_update

Ansible Role Auto_Update

This role helps you automatically install and set up package updates on your system.

GitHub GitLab Downloads Version
GitHub GitLab Downloads Version

Example Playbook

Here’s a simple example playbook you can use to set up automatic updates, taken from molecule/default/converge.yml. It runs tests every time changes are made.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: robertdebock.auto_update

Before running this, prepare the machine as shown in molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: robertdebock.bootstrap

For more details, check out a full explanation and example on using these roles.

Role Variables

You can find default settings for the variables in defaults/main.yml:

---
# Default values for auto_update

# (For RedHat-like systems) Type of updates to apply: default, security, security-severity:Critical, minimal, minimal-security, minimal-security-severity:Critical
auto_update_update_cmd: default

# (For RedHat-like systems) Should a message be shown when updates are available, downloaded, or applied?
auto_update_message: false

# Should updates be downloaded when available?
auto_update_download_updates: true

# Should updates be applied when available?
auto_update_apply_updates: false

# Max time to sleep randomly, in minutes.
auto_update_random_sleep: 360

Requirements

State of Used Roles

The following roles help prepare the system. You can choose other methods to prepare your system.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab
robertdebock.cron Build Status GitHub Build Status GitLab

Context

This role works with many other similar roles. You can find more information in the documentation.

Here’s a map of related roles: Dependencies

Compatibility

This role has been tested on the following container images:

Container Tags
EL 9
Debian all
Fedora all
Ubuntu all

Ansible version 2.12 or higher is needed, and tests have been completed for:

  • Older versions.
  • The latest version.
  • Development versions.

If you encounter any issues, please report them on GitHub.

License

This role is licensed under Apache-2.0.

Author Information

Created by robertdebock.

You can also consider sponsoring me.

Informazioni sul progetto

Install and configure automatic package updates on your system.

Installa
ansible-galaxy install robertdebock.auto_update
Licenza
apache-2.0
Download
17.9k
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.