rundeck-plugins / ansible-plugin

Ansible Integration for Rundeck
MIT License
329 stars 99 forks source link

RUN-2626: fix when master password configured #375

Closed ronaveva closed 1 week ago

ronaveva commented 1 week ago

When the master password is configured at ansible.cfg level, the command to encrypt fails due to ansible not supporting the "--vault-id" parameter.

Fix: Instead of using "--vault-id" it will now use "--encrypt-vault-id" and provide the env var "ANSIBLE_VAULT_IDENTITY_LIST" to provide the vault id as shown in the docs https://docs.ansible.com/ansible/latest/reference_appendices/config.html#envvar-ANSIBLE_VAULT_IDENTITY_LIST

Also whenever the encrypt command fails it will propagate the exception