Hello Team,
I need some help with Ansible Automation Platform (AAP) 2.5. I'm working on a project and have a question.
If we have certain variables, such as passwords or secrets, stored in Azure Key Vault, how can we integrate Key Vault with AAP to retrieve those values and use them within a playbook?
Looking forward to your guidance.
Thanks!
@Pranav_Jayaraj Please checkout the below collection
https://docs.ansible.com/ansible/latest/collections/azure/azcollection/index.html
In case others stumble across this, you need to create a credential using the credential type of Microsoft Azure Key Vault using a service principal in Azure that has access to the key vault you want to retrieve secrets from.
Once that's created, create a Machine credential and click the key next to the password text box and choose the Microsoft Azure Key Vault credential you created previously. Provide the secret name who's value you want to retrieve, and test. If successful, you can save and then use that machine credential to retrieve the value from your Azure key vault upon template runs.
If anyone else knows, I'm curious if this same process could be replicated to retrieve an Azure Key Vault key rather than a secret.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.