Open JasonGantner opened 2 months ago
Upon further analysis, it seems the issue commes from the path being saved in the state on apply even when wrong and then being reused in plan which prevents any further plan/apply that could correct the issue.
To recover from this, I had to tf state rm ansible_vault.secret
and correct the path in my tf file.
We should be able to recover from this error without manual alteration of the state
Versions
Summary
The
ansible_vault
resource ignores the path given invault_password_file
and looks directly in$HOME
for the password file.Terraform code
Terraform example output