umn_community / umn_community.umn_rhel9_management / 1.2.6 / lookup / azure_keyvault Retrieves a secret from Azure Key Vault | "added in version" 0.1 of umn_community.umn_rhel9_management" Authors: Ian Whitney <whit0694@umn.edu>umn_community.umn_rhel9_management.azure_keyvault (1.2.6) — lookup
Install with ansible-galaxy collection install umn_community.umn_rhel9_management:==1.2.6
collections: - name: umn_community.umn_rhel9_management version: 1.2.6
Follows https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow#first-case-access-token-request-with-a-shared-secret
This lookup returns the token from Azure Key Vault for UMN Tenants
You need to define 3 variables for this to work - AZURE_SP_CLIENT_ID - AZURE_SP_CLIENT_SECRET - AZURE_AKV_VAULT_URL
You should be able to retrieve all of these from your Key Vault in Azure
Do not include the `https://` part of in AZURE_AKV_VAULT_URL. - i.e., myvault.vault.azure.net