0 votes
in Ansible by

How can you use the Ansible module “service” to restart a service?

a) By using the “state” parameter with a value of “restarted”

b) By using the “state” parameter with a value of “running”

c) By using the “state” parameter with a value of “stopped”

d) By using the “state” parameter with a value of “reloaded”

1 Answer

0 votes
by

Solution: a) By using the “state” parameter with a value of “restarted”

Explanation: The Ansible module “service” can be used to restart a service by using the “state” parameter with a value of “restarted”.

...