Skip to content

ansible lookup plugin errors out with azure_keyvault_secret #386

Description

@DevOpsEngineer

Hello Team,

Looking for a solution using azure_keyvault_secret module with in ansible lookup plugin (https://docs.ansible.com/ansible/latest/plugins/lookup.html). When fetching secret from a KV, receiving MSI connection timeout error. Please let me know if anyone has experienced the similar issue before.

"{{lookup('azure_keyvault_secret',secret_name,vault_url=keyvault_url)}}"

fatal: [hostname.domain.com]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'azure_keyvault_secret'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Failed to fetch secret:XXXXX via MSI endpoint."}

Thank you,

Emre

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions