lvillani / ansible-tools Goto Github PK
View Code? Open in Web Editor NEWKeyring integration and local execution wrappers for Ansible
Keyring integration and local execution wrappers for Ansible
If I checkout a project with already vaulted secrets to a new machine and try to provision:
$ ansible-playbook -i inventory/production machine.yml
Unable to find a password with name myvaultname.
Call myvaultname --set to save a password inside the keyring.
Unable to run ansible-vault-helper. Cannot continue.
However:
$ ansible-vault-helper myvaultname --set
usage: ansible-vault-helper [-h] [-u]
ansible-vault-helper: error: unrecognized arguments: jugu --set
At this point I am a bit confused, what binary should I call withmyvaultname --set
parameters?
Looks like ansible-vault-helper -u
fixes the situation but I am unsure whether that is actually the right command here?
It also gives a warning about changing the vault PW โ my first thought on that was that it would actually change the encryption PW of the secret and re-encrypt them. But it actually changes (or creates) the PW used to access the vaulted secret file(s) to MacOS keychain. This is a tad confusing as well.
My ansible.cfg has:
[vault]
name = myvaultname
Ansible-vault syntax has changed and is incompatible with ansible-tools. Nowadays it expects the syntax ansible-vault edit --vault-password-file=/usr/local/bin/ansible-vault-helpers secret.yml
. vaultify
in ansible-tools tries to use the old format ansible-vault --vault-password-file=/usr/local/bin/ansible-vault-helper edit secret.yml
, which causes this error:
usage: ansible-vault [-h] [--version] [-v] {create,decrypt,edit,view,encrypt,encrypt_string,rekey} ...
ansible-vault: error: unrecognized arguments: --vault-password-file=/usr/local/bin/ansible-vault-helper --vault-password-file=/usr/local/bin/ansible-vault-helper
Other commands like ansible-playbook
still work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.