Skip to content

Global flag --vault-password-file not working #51

@gitrust

Description

@gitrust

I found your tool today after searching for a standalone alternative for ansible-vault. Great work!

Unfortunately the global flag --vault-password-file seems not to work. I used the docker version of gwvault.

The only way I got this working is by providing the vault password file via the ANSIBLE_VAULT_PASSWORD_FILE environment variable:

docker run -it --rm -e ANSIBLE_VAULT_PASSWORD_FILE=/av/vault_pass -v "$PWD":/workdir -v "~/.ansible:/av:ro" ghcr.io/goodwaygroup/gwvault  view keyvault.yaml

I tried to use it different ways --vault-password-file /av/vault_pass and --vault-password-file=/av/vault_pass. No success.

Am I doing something wrong?

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