ansible / terraform-provider-ansible

community terraform provider for ansible
https://registry.terraform.io/providers/ansible/ansible/latest
GNU General Public License v3.0
195 stars 43 forks source link

Update of ansible_ssh_private_key_file should not invalidate playbook state #130

Open RHeynsZa opened 2 months ago

RHeynsZa commented 2 months ago

Description Using sshUserPrivateKey on Jenkins, creates a secret ssh key.

This file however, is temporary and is given a random name, and is then removed after the pipeline is run. I'd say this is pretty secure, since there is no fishing or scraping for the ssh key possible.

However, this is invalid with the way that playbooks work right now. If the ssh_key var changes, it wants to rerun the whole playbook, even though no state has changed.

Like, I dont want to redeploy my whole database, just because the ssh key location has changed

Note: This probably sucks for people that one day want to move their ssh key to a different directory