On Thursday, June 5, 2014 3:37:11 AM UTC-7, Felix Gläske wrote: > > Hey, > is there a way to use a file from the machine where I run ansible to use > as input for the module lineinfile? >
I'm not sure what you mean here? Are you wanting to create a file on the destination machine based on one on the source machine with changes? If so then templates are what you want (and the file module rather than lineinfile) If you want to provide multiple patterns/changes to lineinfile then you either want to use templates and assemble or lineinfile and with_items... If it's something else perhaps you should tell us your use case rather than ask how to do something.. Perhaps people have an entirely different way to do what you want... Adam -- 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/bdca5af7-9d60-4e49-ac71-9f5a2bdede90%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
