tomoh1r / ansible-vault

This project aim to R/W an ansible-vault yaml file
GNU General Public License v3.0
54 stars 32 forks source link

Add support for JSON files #28

Closed muhammedabad closed 3 years ago

muhammedabad commented 5 years ago

I have the need to occasionally encrypt/decrypt a JSON file that is part of my ansible project. Not sure if this is something that would be a worthwhile addition or be of interest to many users, but I made some changes to add support for JSON files and thought of sharing them.

See #27 for more info.

tomoh1r commented 3 years ago

https://github.com/tomoh1r/ansible-vault/wiki/sample#json Please consider to use load_raw/dump_raw method and wrap with json module.