R/W an ansible-vault yaml file
Project description
ansible-vault
This is not an official Ansible project.
This project aim to R/W an ansible-vault yaml file.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ansible_vault-3.0.0.tar.gz
(15.2 kB
view details)
Built Distribution
File details
Details for the file ansible_vault-3.0.0.tar.gz
.
File metadata
- Download URL: ansible_vault-3.0.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0989bf8a973edcb90cbd6dd5f8310a02ae0a9b8795e5d527c6a4f851cb6ace07
|
|
MD5 |
9d1dab5458356b0a5bf965ffe23faa3d
|
|
BLAKE2b-256 |
7fe0c88cdb7d4e349c9fa28cf9843d7bbc9477114c652eca85e0c5f1fcaa276b
|
File details
Details for the file ansible_vault-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: ansible_vault-3.0.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e863a5b2311873e79f813a823c7aba6c34e712503829f9985118b36f6e8dcc55
|
|
MD5 |
2dc92629f7632fa4c38849c5cce1d4e8
|
|
BLAKE2b-256 |
9c5ebe67b983f7b7dbd7e5c7440a048468c40e2c7266c6b7fc1c63d15af1ff34
|