ansible-vault-var - Get and set encrypted values in vars yaml file.
Features
- get encrypted value as plain text from ansible vars yaml file
- set encrypted value from plain text in ansible vars yaml file
Prerequisites
- GNU make
- python >= 3.6
- pipenv
Usage
Get variable
python3 -m ansible_vault_var --vault-password-file=vault_password.txt \
get_var --var-name=secret_ingredient --vars-file=secret_vars.yml
Set variable
python3 -m ansible_vault_var --vault-password-file=vault_password.txt \
set_var --var-name=secret_ingredient --vars-file=secret_vars.yml --new-var-value=salt
Copyright (c) 2021 by Cornelius Buschka.