I am using Spacewalk release 2.9 to manage my CentOS Linux server. using below
spacecmd command to push the new packages. I want to reboot the server once all the packages are installed on the machine. I am unsure how to monitor package upgrade and issue the reboot command. Any recommendations to achieve this? I would like to use Ansible playbook to do this reboot.
spacecmd system_upgradepackage <hostname> '*' -y