0 votes
in Ansible by

How can you use the Ansible module “file” to create a directory on a target system?

a) By using the “mode” parameter to specify the permissions for the directory

b) By using the “state” parameter with the value “directory”

c) By using the “directory” parameter with the value “create”

d) By using the “path” parameter to specify the path to the directory

1 Answer

0 votes
by

Solution: b) By using the “state” parameter with the value “directory”

Explanation: The Ansible module “file” can be used to create a directory on a target system by using the “state” parameter with the value “directory”.

...