buluma.auto_update
Ansible Role auto_update
This role helps you to automatically install and set up package updates on your system.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
This example is from molecule/default/converge.yml
and is tested with every update, pull request, and release.
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: buluma.auto_update
Before running the playbook, you need to prepare the machine. In CI, this is done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: true
gather_facts: false
roles:
- role: buluma.bootstrap
You can find a full guide and example on using these roles.
Role Variables
Default variable values are found in defaults/main.yml
:
---
# defaults file for auto_update
# (Only for RedHat-like systems) Types of updates to apply; valid options are:
# default, security, security-severity:Critical, minimal, minimal-security, minimal-security-severity:Critical
auto_update_update_cmd: default
# (Only for RedHat-like systems) Should a message show when updates are available, downloaded, or applied?
auto_update_message: false
# Should updates be downloaded when they're available?
auto_update_download_updates: true
# Should updates be applied when they're available? Make sure to set download_updates to true for this to work.
auto_update_apply_updates: false
# Maximum time to pause randomly, specified in minutes.
auto_update_random_sleep: 360
Requirements
- The pip packages listed in requirements.txt.
State of used roles
These roles are used to prepare your system. You can also prepare your system differently.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
buluma.cron |
Context
This role is part of many compatible roles. Check the documentation of these roles for more information.
Here’s a look at related roles:
Compatibility
This role has been tested on these container images:
Container | Tags |
---|---|
EL | 8, 9 |
Debian | all |
Fedora | all |
Ubuntu | all |
You need at least Ansible version 2.12. Tests have been done on:
- The previous version.
- The current version.
- The development version.
If you encounter any problems, please report them on GitHub.
Changelog
Refer to the Role History for changes.
License
Licensed under Apache-2.0.
Author Information
Created by Shadow Walker.
Install and configure automatic package updates on your system.
ansible-galaxy install buluma.auto_update