I have a couple of situations where there are informal sections in a configuration file that are delimited by comments, and I'd like to update these with Ansible. Is there a module for this?
For example, the file some.cfg looks like this: # this is the some.cfg file var1=1 var2=2 # some section start svar1=1 svar2=2 # some section end var3=3 I want to be able to replace the variables delimited by "some section start" and "some section end". This is complicated by the fact that the delimiters are created ad-hoc by application developers, so there's no consistent syntax. I can't assemble the file from components because users can take actions that cause the file to change, so there's no master copy. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a3d14f29-d679-4ade-b1f0-a6025717e2d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
