umn_community.umn_rhel9_management.azure_keyvault (1.2.6) — lookup

Retrieves a secret from Azure Key Vault

| "added in version" 0.1 of umn_community.umn_rhel9_management"

Authors: Ian Whitney <whit0694@umn.edu>

Install collection

Install with ansible-galaxy collection install umn_community.umn_rhel9_management:==1.2.6


Add to requirements.yml

  collections:
    - name: umn_community.umn_rhel9_management
      version: 1.2.6

Description

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