Difference between revisions of "Blockinfile:"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
  
  - lineinfile:
+
  - blockinfile:
 
       path: /path/to/your_file
 
       path: /path/to/your_file
 
       state: present
 
       state: present
       [[insertafter:]] EOF
+
       [[insertafter:]] [[EOF]]
       [[content:]] 'your first line
+
       [[content:]] |
                your second line  
+
          your first line
                your third line'
+
          your second line  
 +
          your third line
  
  

Revision as of 13:32, 21 October 2021

Advertising: