thorian93.unattended_upgrade
Ansible Role: Unattended Upgrade
This role sets up unattended upgrades on Debian/Ubuntu, RHEL/CentOS, and Fedora servers.
Important Note
This is my simple way of managing updates across different systems. It’s still being developed, so please check the role carefully. If you are only interested in one specific operating system, such as Debian
or CentOS
, you might want to explore the projects mentioned in the Acknowledgements.
Known Issues
None.
Requirements
There are no special requirements, but this role needs root access. You can either run it with a playbook that has a become: yes
option or use it in your playbook like this:
- hosts: foobar
roles:
- role: thorian93.unattended-upgrade
become: yes
Role Variables
You can check available variables in defaults/main.yml
. There are quite a few, so they aren't all listed here.
Dependencies
None.
OS Compatibility
This role checks that it is not run on unsupported or untested operating systems by verifying that the right distribution name and major version number are in a variable called <role-name>_stable_os
. You can find this variable in the role's default variable file at defaults/main.yml
:
role_stable_os:
- Debian 10
- Ubuntu 18
- CentOS 7
- Fedora 30
If the distribution and version do not match your system, the role will fail. To make it work, add your distribution name and version to that variable, but remember to test it first!
Thanks to HarryHarcourt for this suggestion!
Example Playbook
---
- name: "Run role."
hosts: all
become: yes
roles:
- ansible-role-unattended-upgrade
Acknowledgements
This role combines methods for all major distributions and is inspired by the following two roles:
Contributing
Feel free to report any bugs or issues, or if you have suggestions for improvements. You can also contact me anytime if you have questions or want to discuss anything.
Disclaimer
This role is provided AS IS. I cannot guarantee that it will work as intended, nor will I be responsible for any issues or misconfigurations caused by using this role. Please review the role carefully before using it.
License
MIT
Author Information
This role was created in 2020 by Thorian93.
Unattended Upgrades Management
ansible-galaxy install thorian93.unattended_upgrade