On 06. juli 2016 16:14, jean-christophe manciot wrote:
It seems quite difficult to perform a very simple task: save the content of a variable to a file. This variable content is not just a string, but several lines as shown by the debug module: "out.stdout_lines": [ [ "Using 2011 out of 262144 bytes, uncompressed size = 3870 bytes", "!", "! Last configuration change at 18:34:42 UTC Thu Jun 30 2016 by admin", "!", "version 15.2", ... "hostname IOSv_L2_1", ... "end", "" ] ]Trying to use the "copy" module leads to the previously mentioned issue:
The copy module is not design for this, use the template module instead. -- Kai Stian Olstad -- 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/577E5942.6060809%40olstad.com. For more options, visit https://groups.google.com/d/optout.
