Well, that was easy!
import ansible.utils
bar = dict()
bar = ansible.utils._load_vars_from_path("secrets.yml", results=bar,
vault_password="password")
print bar
On Saturday, September 12, 2015 at 2:34:20 AM UTC+1, Tom Paine wrote:
>
> Are there any examples of using the Ansible Python API to decrypt an
> existing vault file?
>
--
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/0c122ea6-e53b-4622-9c38-591f13eb6cfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.