Would it be acceptable to template that config file? Perhaps save that chunk only, in a templated file that would be later on included.
On Sunday, 29 March 2015 06:34:20 UTC+2, Vince Skahan wrote: > > I'm installing a piece of software that requires me to edit a user=xyz > line into a monolithic config file that is .ini like in format. > > [function-x] > > # user=myuserhere > > > > [function-y] > # other stuff here > # more stuff here > > > > [function-z] > # user=myuserhere > > > > So suppose I have a config that requires me to uncomment the line in > [function-Z] and substitute in the right value for the username. > > How do you specify which of the two identical lines in the file that you > want to edit ? > Any suggestions ? > > > > > -- 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/7da54206-4d37-4a88-933f-3d2c8f4410e4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
