• Comments
  • calling a Vault from within a playbook

    Posted on

    hi, I wondering if anyone can help with my issue related to,
    ansible playbooks calling a vault from within itself.
    I have run into an issue where we have a password stored in a vault,
    file, and is encrypted.
    how do you call the the password as a variable like below from a playbook?

    password: "{{ lookup('env', 'Vault_PASSWORD') }}"

    without using the likes or --ask-vault-pass as this is CMD line only,
    or something similar.

    regards

    by

    points

    Responses

    Red Hat
    © 2025 Red Hat, Inc.