Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tomoh1r/ansible-vault

ansible-vault

This is not an official Ansible project.

This project aim to R/W an ansible-vault yaml file.

test Coverage Status PyPI - Version PyPI - Python Version ansible-core Support Version GitHub License

If you look forward to, here:


Quick Start

You can install with pip.

pip install ansible-vault

When you have an ansible-vault file, then you can read file. See below.

from ansible_vault import Vault

vault = Vault('password')
data = vault.load(open('vault.yml').read())

When you have to write data, then you can write data to file. See below.

from ansible_vault import Vault

vault = Vault('password')
vault.dump(data, open('vault.yml', 'w'))

# also you can get encrypted text
print(vault.dump(data))

Contributing

See CONTRIBUTING.md.


Links

About

This project aim to R/W an ansible-vault yaml file

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 5

Languages