ansible snippets

using ansible to copy multiline onto a host from a vault?

first encode the data as base64 then assign to your variable in a vault.

to place on target machine,
create a template with {{ variable | b64decode }}
and use the template directive to copy the data and place the file