0 votes
in Ansible by
How can you use the Ansible module “apt” to install a package on a Debian-based target machine?

a) By using the “name” parameter to specify the package name and the “state” parameter to specify “installed”

b) By using the “package” parameter to specify the package name and the “state” parameter to specify “present”

c) By using the “pkg_name” parameter to specify the package name and the “pkg_state” parameter to specify “installed”

d) By using the “install” parameter to specify the package name and the “status” parameter to specify “installed”

1 Answer

0 votes
by
Answer: b) By using the “package” parameter to specify the package name and the “state” parameter to specify “present”

Explanation: The Ansible module “apt” can be used to install a package on a Debian-based target machine by using the “package” parameter to specify the package name and the “state” parameter to specify “present”.
...