You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to be able to add or remove a line in a text file. To do so, I'll create a new line_in_file that is a simplified (no regex) implementation of the Ansible lineinfile.
This would be the design:
- name: Task Name
line_in_file:
src: /path/to/file.ext
state: [present|absent]
line: value
insert_after: value
insert_before: value
Any comment before I start working on it?
The text was updated successfully, but these errors were encountered:
corentincharron
changed the title
Adding a new line_in_file task
Adding a new line_in_file task
Nov 12, 2020
Hello :)
I need to be able to add or remove a line in a text file. To do so, I'll create a new
line_in_file
that is a simplified (no regex) implementation of the Ansiblelineinfile
.This would be the design:
Any comment before I start working on it?
The text was updated successfully, but these errors were encountered: