Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a new line_in_file task #9

Open
corentincharron opened this issue Nov 12, 2020 · 1 comment
Open

Adding a new line_in_file task #9

corentincharron opened this issue Nov 12, 2020 · 1 comment

Comments

@corentincharron
Copy link
Contributor

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 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?

@corentincharron corentincharron changed the title Adding a new line_in_file task Adding a new line_in_file task Nov 12, 2020
@MrFrangipane
Copy link
Collaborator

Hi !

That would be awesome, thanks a lot for your contribution !

All the best
:)

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

No branches or pull requests

2 participants