When constructing the Ansible command(s) to run, this plugin returns prematurely if a syntax check is being run which leads to the vault password not being specified. This causes the syntax check to fail if one or more vars files is Ansible Vault-encrypted.
Yes - that works fine. The issue arises when the entirety of a file is vault encrypted rather than just individually encrypting strings (i.e. file-level encryption rather than variable-level encryption).
When constructing the Ansible command(s) to run, this plugin returns prematurely if a syntax check is being run which leads to the vault password not being specified. This causes the syntax check to fail if one or more vars files is Ansible Vault-encrypted.
Line of code in question: https://github.com/drone-plugins/drone-ansible/blob/master/plugin.go#L252
I'll submit a PR to remedy, but still wanted to create an issue for tracking.
Our error:
Relevant portion of our
.drone.yml:The text was updated successfully, but these errors were encountered: