0 votes
in Ansible by
How can you use the Ansible module “lineinfile” to add a line to a file on a target machine?

a) By using the “line” parameter to specify the line to add and the “path” parameter to specify the path to the file

b) By using the “add” parameter to specify the line to add and the “file” parameter to specify the path to the file

c) By using the “insert” parameter to specify the line to add and the “into” parameter to specify the path to the file

d) By using the “append” parameter to specify the line to add and the “to” parameter to specify the path to the file

1 Answer

0 votes
by

Answer: a) By using the “line” parameter to specify the line to add and the “path” parameter to specify the path to the file

Explanation: The Ansible module “lineinfile” can be used to add a line to a file on a target machine by using the “line” parameter to specify the line to add and the “path” parameter to specify the path to the file.

...