This project aim to R/W an ansible-vault yaml file
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))
Metadata
Release files for ansible-vault 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ansible-vault-1.0.5.tar.gz | 3.2 kB | Details |
Release files / ansible-vault-1.0.5.tar.gz
| Download URL | ansible-vault-1.0.5.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0a059add6a246d60db3cb947a2fec4b3d08228e979ac62c7b155ee38f83e6d7
|
|
BLAKE2b-256 checksum How to use checksums |
bb4ca79617e7a43a4b1d3b75e6352e0b6b8aac9cdbdce05b3acd4ea31d0b990e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |