rundeck-plugins / ansible-plugin

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

v5.3.0 - Error in vault password file loading #370

Closed diginote closed 3 months ago

diginote commented 4 months ago

Describe the bug

Since v5.3.0 I get the error »Invalid vault password was provided from script (...)« on runnung ansible playbooks that use encrypted ansible vault variables. Running the playbook with ansible (without rundeck) works. I use Key storage for vault password and become method.

My Rundeck detail

To Reproduce

Steps to reproduce the behavior:

  1. create a playbook with tasks that use encrypted variables with ansible vault
  2. create job to run ansible playbook
  3. run job and get decryption password for vault from key storage
  4. See error

Expected behavior Rundeck job finishes without error like in v5.2.0 or before

Additional context see the same error mentioned here: https://www.reddit.com/r/Rundeck/comments/1d1qwqm/error_after_uprade_to_530/

ltamaster commented 4 months ago

can you share the job definition (I don't need the playbook, just the ansible step settings)? are you using an encrypted playbook or an encrypted extra vars file?

tpegeot commented 4 months ago

Hello, I'm facing the same issue that was described on Reddit.

[WARNING]: Error in vault password file loading (None): Invalid vault password was provided from script (/tmp/rundeck/ansible-
runner4503715887996482637ansible-script-vault-client.py

I attached the job definiton

job definition.json

Thank you in advance

diginote commented 4 months ago

Here is my job definition

job_definition.json