Difference between revisions of "Blockinfile:"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* https://docs.ansible.com/ansible/latest/collections/ansible/builtin/blockinfile_module.html
 
* https://docs.ansible.com/ansible/latest/collections/ansible/builtin/blockinfile_module.html
 +
 +
 +
- lineinfile:
 +
      path: /path/to/your_file
 +
      state: present
 +
      [[insertafter:]] EOF
 +
      [[content:]] 'your first line
 +
                    your second line
 +
                    your third line'
  
  

Revision as of 13:21, 21 October 2021

Advertising: