in Ansible by

What is the purpose of the Ansible module “lineinfile”?

a) To search for a line in a file and replace it with a new line

b) To add a new line to the end of a file

c) To remove a line from a file

d) To create a new file with a single line of text

1 Answer

0 votes
by

Solution: a) To search for a line in a file and replace it with a new line

Explanation: The Ansible module “lineinfile” is used to search for a line in a file and replace it with a new line.

...