angrox.centos-updates
CentOS Updates
This module has the following features:
- Apply Updates
- Security only
- Complete
- Reboot the machine if needed
- Enable automatic installation of security updates every day without rebooting
How to Use
The module requires specific settings to function correctly. When using ansible-playbook
, you can set these with the "-e" option.
Apply Updates & Reboot
ansible-playbook site.yml -e 'security_updates=true'
ansible-playbook site.yml -e 'update_all=true'
If needed, the server can be rebooted.
ansible-playbook site.yml -e 'do_reboot=true'
ansible-playbook site.yml -e 'update_all=true do_reboot=true'
Automatic Updates
To enable automatic updates, install yum-cron
and start the yum-cron service:
ansible-playbook site.yml -e 'automatic_updates=true'
Do Everything
To run all tasks at once:
ansible-playbook site.yml -e 'update_all=true do_reboot=true automatic_updates=true'
Default Settings
By default, nothing happens except a message indicating that a specific task must be provided.
You can set one variable to define what should be included in the automatic updates:
# Choose the type of update:
# default = yum upgrade
# security = yum --security upgrade
# security-severity:Critical = yum --sec-severity=Critical upgrade
# minimal = yum --bugfix update-minimal
# minimal-security = yum --security update-minimal
# minimal-security-severity:Critical = yum --sec-severity=Critical update-minimal
yum_update_command: minimal-security
Installa
ansible-galaxy install angrox.centos-updates
Licenza
Unknown
Download
565
Proprietario