Skip to content

Instantly share code, notes, and snippets.

View sthames42's full-sized avatar

Steve sthames42

  • Cameron Park, California
View GitHub Profile
@sthames42
sthames42 / av-filter
Last active December 23, 2025 00:57 — forked from utoddl/av-filter
Filter for "ansible-vault"ing YAML Data Values
#!/usr/bin/env python
"""Filter for "ansible-vault"ing YAML Data Values
https://gist.github.com/utoddl/66baa4154618ba1fc8ec8127483e7e89
This script allows an ansible user to pass lines of yaml data
through it to get string values vaulted and/or already-vaulted values
unvaulted, thus simplifying the maintenance of vaulted strings in
Ansible vars files and eliminating the need to vault entire files.