ansible-netplan icon indicating copy to clipboard operation
ansible-netplan copied to clipboard

Maintained-by-ansible comment

Open yaiqsa opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. I'd like the possibility to ad a 'do not change this file' warning at the top of the generated netplan files.

Describe the solution you'd like I would suggest just putting this snippet at the top of the template:

{% if netplan_managed_comment is not none %}
# {{ netplan_managed_comment }}
{% endif %}

By default this variable could either be empty, a reference to ansible_managed, or a custom string. I implemented this idea in my personal fork already.

Describe alternatives you've considered I could run a separate task after this role to add the comment, but that would lead to more cutter and filechanges.

Additional context I think this feature is quite self-explanatory 😅

yaiqsa avatar Jun 28 '21 11:06 yaiqsa

@Burathar I like this idea and PR's are more than welcomed!

mrlesmithjr avatar Aug 12 '21 03:08 mrlesmithjr

@Burathar I like this idea and PR's are more than welcomed!

I will try to find the time to implement something, but I've got quite a backlog of projects 😅

yaiqsa avatar Oct 11 '21 10:10 yaiqsa

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 14 '24 09:01 stale[bot]