On 07. juli 2016 17:02, jean-christophe manciot wrote:
No: the template module only deals with files, not with a variable.
Yes, the template module, in your first post you write "save the content
of a variable to a file" that is exactly what the template module is
highly capable of doing
https://docs.ansible.com/ansible/template_module.html
The template will be Jinja2 code looping the variable and write the
content to a file.
--
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/577E7C6C.2040205%40olstad.com.
For more options, visit https://groups.google.com/d/optout.