intellij-ansible
intellij-ansible copied to clipboard
Feature Request: Support for Ansible-Vault
Agree, support for vault would be fantastic: http://docs.ansible.com/ansible/playbooks_vault.html
Well, how do you imagine typical workflow? Automatic decoding? Or option to preview encoded data?
I can imagine two workflow
- Creating and editing encrypted data
- Editing existing encrypted data
- Maybe Optional Storing of password? Not sure if this is a good practice, but ansible-vault can accept parameterized --vault-password-file=PASSWORD_FILE. Which you need to store in a file anyway.
+1 (with ideas from Zkanda) And allow to define a (default) vault-password-file, which would be used to (on-the-fly) encrypt/decrypt all vault managed(/encrypted) files
+1
+1
+1
+1
+1
+1
+1
I have a global password file defined in /etc/ansible
I would love to right-click a vault.yml file, Choose "Ansible Vault > Encrypt" and have it encrypted without copying the path and flipping back to bash. Same with Decrypt.
Transparent encrypt/decrypt would be swell :+1:
I haven't try, but here is a workaround https://iuliusathome.blogspot.ch/2016/08/intellij-ansible-vaults-and-windows.html
I've done something similar to the above:
Prefs->Tools->External Tools->New
Name: Vault Edit
Group: Ansible
Program: edit $FileName$
working dir: $FileDir
script.sh:
#!/bin/sh
EDITOR=charm
ansible-vault --vault-password-file=<path to password file> "$@"
Assuming you have the pycharm cli tool installed this will open the decrypted vault in a new tab.
+10
+1. @vermut any update on this? would love to have it as well
Hi! To begin with - I'd like to say "Thanks" for the solutions provided before :+1:
Vault opens successfully and... closes in less than second. When I add sleep to bash script - this works.
How to force ansible-vault to wait for "save" action from PHPStorm?
+1 for built in support in the IDE.
+1
+1