Valid 701-100 Dumps shared by ExamDiscuss.com for Helping Passing 701-100 Exam! ExamDiscuss.com now offer the newest 701-100 exam dumps, the ExamDiscuss.com 701-100 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 701-100 dumps with Test Engine here:
Which Ansible modules can be used to change the contents of a file? (Choose three correct answers.)
Correct Answer: A,B,C
Ansible provides several modules to manipulate the contents of files. The correct modules for changing the contents of a file are: * lineinfile: This module ensures a particular line is present or absent in a file, or it can replace existing lines that match a pattern. * replace: This module performs a search and replace on a string in a file. * patch: This module applies a patch to a file. It can be used to apply diffs to files, which essentially modifies the contents based on the diff provided. The other options, insert and modify, are not standard Ansible modules for file content manipulation. References: * Ansible Documentation - lineinfile module * Ansible Documentation - replace module * Ansible Documentation - patch module