On Wed, Mar 5, 2014 at 3:47 PM, Brian Coca <[email protected]> wrote:

> why not encrypt the file itself? ansible-vault should be able to handle it.
>

I thought ansible-vault could only encrypt yaml and json files?


On Wed, Mar 5, 2014 at 3:45 PM, Jan-Piet Mens <[email protected]> wrote:

> As for extraction, maybe the following could work (untested!) It
> decodes the base64-encoded string (-d) and writes it to the specified
> destination.
>
> - action: shell echo "{{ myfile }}" | openssl enc -d -a -out {{ destfile }}
>

It would work but it's not elegant imho - largely because it can't detect
whether the file needs to be changed; it can just run or not run and it'll
overwrite whatever's in the file.  unlike a copy or template directive
which can look inside and even do a diff.

-J

-- 
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/CA%2BfnDAYO-nxwGy5P6FBq9H7dVvO5PLn39v1%2Bwuhhc3hznY5krg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to