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

Add ansible-style 'line in file' substitution #3

Open
flyte opened this issue Mar 29, 2018 · 4 comments
Open

Add ansible-style 'line in file' substitution #3

flyte opened this issue Mar 29, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@flyte
Copy link
Owner

flyte commented Mar 29, 2018

No description provided.

@flyte flyte added the enhancement New feature or request label Mar 29, 2018
@jayvdb
Copy link

jayvdb commented Jan 29, 2019

Could you describe this feature in a bit more detail.

Asking on behalf of https://github.com/moremoban/moban , as we could add any missing features needed if you want to join / adopt.

@flyte
Copy link
Owner Author

flyte commented Jan 29, 2019

Hi @jayvdb

The functionality I'm referring to is that of the Ansible lineinefile module which allows you to change just one line in a config file using a regex match, leaving the rest intact.

I expect that I'll implement the feature when I find myself needing it.

Moban looks cool - it might have worked for my use case had I known about it sooner! However, I'm not proactively developing this much, as I'm really just using it for my own/clients' projects when I need it. Feel free to use any code from confp that you find useful though; such is the spirit of the MIT license!

Cheers

@jayvdb
Copy link

jayvdb commented Feb 1, 2019

Ideally we make it so transitioning to moban is easy. I've scheduled this for the next sprint.

@chfw
Copy link

chfw commented Sep 5, 2020

Not sure if there exists such a long sprint in the world. It was in the backlog for 1 year and half. Please have a look the implementation from moban-ansible package:

https://github.com/moremoban/moban-ansible/tree/master/docs/level-1-line-in-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants