Are there any examples of using the Ansible Python API to decrypt an existing vault file?
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
`
Sit Tom Paine, Hope you are fine !
Will you please help me, i want examples of using python code for rekeying mechanism for an existing vault file ?
Your help will be highly appreciated.
Thanks
Are there any examples of using the Ansible Python API for rekeying an existing vault file?