hyperized.unattended_upgrades
unattended-upgrades
Installs unattended-upgrades.
Requirements
It is recommended to use Ansible version 2.5 or higher.
Role Variables
unattended_upgrades_enabled: True (enables unattended upgrades)unattended_upgrades_state: installed (ensures the package is installed)unattended_upgrades_unattended_upgrade: 1 (allows unattended upgrades)unattended_upgrades_autoclean_interval: 7 (sets the autoclean interval to 7 days)unattended_upgrades_mailto: root (sends email notifications to the root user)unattended_upgrades_remove_old_kernels: true (removes old Linux kernels)unattended_upgrades_remove_unused_dependencies: true (removes unused packages)unattended_upgrades_automatic_reboot: true (allows automatic reboot after upgrades)unattended_upgrades_automatic_reboot_time: "02:00" (sets the automatic reboot time to 2 AM)
Dependencies
hyperized.package
Example Playbook
- hosts: all
become: yes
roles:
- role: hyperized.unattended-upgrades
License
MIT
Author Information
Gerben Geijteman gerben@hyperized.net
Installa
ansible-galaxy install hyperized.unattended_upgradesLicenza
Unknown
Download
179
Proprietario
Devops Consultant
