Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cbuschka/ansible-vault-var
Get and set encrypted values in vars yaml file.
https://github.com/cbuschka/ansible-vault-var
ansible ansible-vault python
Last synced: about 1 month ago
JSON representation
Get and set encrypted values in vars yaml file.
- Host: GitHub
- URL: https://github.com/cbuschka/ansible-vault-var
- Owner: cbuschka
- License: mit
- Created: 2021-09-05T06:09:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-05T14:44:04.000Z (about 3 years ago)
- Last Synced: 2024-09-30T01:42:07.164Z (about 2 months ago)
- Topics: ansible, ansible-vault, python
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
[![Build](https://img.shields.io/github/workflow/status/cbuschka/ansible-vault-var/build)](https://github.io/cbuschka/ansible-vault-var) [![PyPI](https://img.shields.io/pypi/v/ansible-vault-var)](https://pypi.org/project/ansible-vault-var/) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://github.com/cbuschka/ansible-vault-var/blob/main/license.txt)
# 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](https://github.com/cbuschka).
[MIT](./license.txt)