0 votes
in Ansible by
How can you use the Ansible module “shell” to run a shell command on a target machine?

a) By using the “command” parameter to specify the command to run

b) By using the “exec” parameter to specify the command to run

c) By using the “run” parameter to specify the command to run

d) By using the “shell_command” parameter to specify the command to run

1 Answer

0 votes
by

Answer: a) By using the “command” parameter to specify the command to run

Explanation: The Ansible module “shell” can be used to run a shell command on a target machine by using the “command” parameter to specify the command to run.

...