Skip to content

Ansible playbooks for installing upgrades and checking for new packages on linux servers with APT or YUM

License

Notifications You must be signed in to change notification settings

AriESQ/ansible-update

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Upgrade with Ansible

Script to check for new packages on servers and upgrade them. It uses Ansible and keybased login through SSH. It supports APT and YUM as package manager, so it should work on several distibutions (tested on Red Hat and Debian).

./upgrade.sh --check

Will send a mail to the admin_mail address if mail_info is yes and package updates are needed.

./upgrade.sh --install

Will install all package updates and checks if a reboot is required. It will then send a mail to the admin_mail address if mail_info is yes with what was installed (output of APT/YUM). If a reboot is required and auto_reboot is no, it will send an(other) mail to admin_mail, otherwise it will reboot the machine.

About

Ansible playbooks for installing upgrades and checking for new packages on linux servers with APT or YUM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%