I think we do something similar with SSL certificates.

First, we use the multi-line YAML notation ni the vars file:
ssl_private_key: |
  -----BEGIN RSA PRIVATE KEY-----
  ETC...
  
Note the spacing in front of the lines, that's required.
In case you don't need the actual newlines on the other end, you can also 
use ">" instead of "|"

And then we have a template "templates/ssl_private_key.j2" with just the 
variable as content:
{{ ssl_private_key }}

--
Ramon

-- 
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/8ff04cd0-4ae8-4104-8500-a0bba3e3d022%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to