Fixes #37340 - Use package module to update packages
In favor of just running a shell command via Ansible, you can use the Ansible module "ansible.builtin.package" to perform package actions such as installing, updating, and removing packages.
NOTE: "package_names.empty?" is always empty for hosts running Debian or Ubuntu.
To imitate the behaviour of shell-based job templates in "foreman_remote_execution", we update all packages if the user input is empty.
Fixes #37340 - Use package module to update packages
In favor of just running a shell command via Ansible, you can use the
Ansible module "ansible.builtin.package" to perform package actions such
as installing, updating, and removing packages.
NOTE: "package_names.empty?" is always empty for hosts running Debian or
Ubuntu.
To imitate the behaviour of shell-based job templates in
"foreman_remote_execution", we update all packages if the user input is
empty.
introduced with 4f236c7dbff1038fa1bf96bad9c7cd458e163016
Refs #37051