We have systems manager configured to report inventory on our EC2 instances. I was able to use Inventory search to find Ubuntu instances with the unattended-upgrades
package installed. The search found eight instances with the package installed.
I then used run command to delete the package from two instances:
And verified that the package was removed:
I also logged into the instances and verified that apt list --installed
did not show unattended-upgrades
as an installed package.
However, Inventory continues to report eight instances with unattended-upgrades
installed. Is that expected? Or do I need to add a filter to the search to only show instances where the package is currently installed?