Building this into the copy plugin would definitely be the way to go; the 
vault header could have a flag to denote the contents and distinguish 
binary from yaml. 

On Saturday, 20 December 2014 00:55:42 UTC, Michael DeHaan wrote:
>
> If the primary goal of this is to encrypt the value given to the "src" of 
> a copy operation (or template operation), I wonder if there's a better way 
> to make this happen without needing to shell out to an extra CLI.
>
> It might require vault knowing that a file is not YAML when it is executed 
> though...
>
>
>
> On Fri, Dec 19, 2014 at 5:34 PM, Stephen Gargan <[email protected] 
> <javascript:>> wrote:
>
>> I've been using a pattern of base64 encoded values and jinja templates 
>> deal with storing binary data in vaults and have put together scripts to 
>> simplify the process; I've found them pretty useful and figured others 
>> might get some use out of them.
>>
>> https://github.com/sgargan/ansible-vault-tools
>>
>> I've considered writing a dedicated module to take the place of the 
>> playbook and template, but in the meantime this works pretty well.
>>
>> regards,
>>
>> Steve.
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/f0c60c7b-fd99-4333-b628-c7fe39dabfc4%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/f0c60c7b-fd99-4333-b628-c7fe39dabfc4%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/e4f14784-de41-46bf-aee2-4150a8da68b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to