This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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. |