Skip to main content
https://travis-ci.org/tomoh1r/ansible-vault.svg?branch=master

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)

Source distribution for ansible-vault 1.0.5
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

Release history Release notifications | RSS feed

4.1.0

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.1.0

1 release file

2.0.0

1 release file

1.2.0

1 release file

1.1.2

1 release file

1.1.1

1 release file

This release

1.0.5 This release

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page