rundeck-plugins / ansible-plugin

Ansible Integration for Rundeck
MIT License
330 stars 100 forks source link

Problem with Ansible inventory and encrypted group_vars #295

Closed spiglee closed 3 years ago

spiglee commented 3 years ago

I am having issues when trying to use ansible-vault to encrypt either strings or entire yaml files within my group_vars for my inventory (namely, my username and passwords stored here). I have no troubles with this from the command line when encrypting either a string or an entire file. I am able to supply "--ask-vault-pass" when running a playbook and I supply my vault encryption password and it runs the playbook without incident and uses the encrypted group_vars.

If I do not involve any encryption with this plugin in Rundeck, it works fine. I am able to reference a dynamic inventory file and it pulls in contents from the group_vars directory to produce my inventory with no problem. However, once I encrypt anything with ansible-vault, it goes bad inside of Rundeck with this plugin. I have tried to use both the "Vault Key File path" and "Vault Password" when setting up my nodes with this plugin, but neither one seem to be able to decrypt the information and give me my list of nodes.

I am currently running Rundeck version 3.3.10 and version 3.1.1 of this plugin.