0 votes
in Ansible by

How can you use the Ansible module “file” to change the owner and group of a file on a target machine?

a) By using the “owner” and “group” parameters to specify the new owner and group

b) By using the “chown” parameter to specify the new owner and group in the format “user:group”

c) By using the “set_owner” and “set_group” parameters to specify the new owner and group

d) By using the “user” and “group” parameters to specify the new owner and group

1 Answer

0 votes
by

Answer: b) By using the “chown” parameter to specify the new owner and group in the format “user:group”

Explanation: The Ansible module “file” can be used to change the owner and group of a file on a target machine by using the “chown” parameter to specify the new owner and group in the format “user:group”.

...