Which of the following functions are provided by the Ansible apt module? (Choose two correct answers.)
Which of the following functions are provided by the Ansible apt module? (Choose two correct answers.)
The Ansible apt module provides functionality to update an installed package to the latest version and to update the list of available packages from configured repositories. These operations are essential for maintaining system packages and ensuring they are up-to-date. There is no indication that the apt module can re-compile an installed package from the source code, add the URL of a new repository, or install a Linux distribution on an empty target system.
I think is A and B. The apt module usage doesn't mention anything close to E. https://docs.ansible.com/ansible/latest/collections/ansible/builtin/apt_module.html
I don't agree. The Ansible apt module can: Update an installed package to the latest version. The correct answer is A and B
The correct answer is A and B
A and B
The apt module matches more or less the apt-get module, which allows to install a package if it's not installed already, upgrade it if it's installed but a new version is available (answer A), and update the repositories to retrieve the complete list of packages and the available versions (answer B).
E is not also wrong and point directly to the overall usage of the apt module