Skip to content

Conversation

@Doubleth1nk
Copy link

@Doubleth1nk Doubleth1nk commented Feb 22, 2017

Can you look at new resource, replace_line_or_add

The reason for this resource is that with the append_line you cannot use regex.
The resource replace_line_or_add you can use regex features and if no regex is matched it will append your replacement string to the file.

Just like append resource it will not insert a line every time but only if no match is found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant