Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make separate location for ansible vault file possible #87

Open
ghost opened this issue Jan 5, 2024 · 2 comments
Open

make separate location for ansible vault file possible #87

ghost opened this issue Jan 5, 2024 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 5, 2024

Currently I need to add the vault file in the tree where my playbooks are. But it would be awesome to enter in the "with" section something to refer to a default vault file.

@dawidd6
Copy link
Owner

dawidd6 commented Jan 5, 2024

Please submit a PR for this feature.

@ghost
Copy link
Author

ghost commented Jan 5, 2024

If I knew how I would :-) am new to github.
Basically:

Current situation:

  • name: Run playbook
    uses: dawidd6/action-ansible-playbook@v2
    with:

    Required, playbook filepath

    playbook: deploy.yml

    Optional, directory where playbooks live

    directory: ./

    Optional, SSH private key

    key: ${{secrets.SSH_PRIVATE_KEY}}

    Optional, literal inventory file contents

    inventory: |
    [all]
    example.com

    [group1]
    example.com
    

    Optional, SSH known hosts file content

    known_hosts: |
    example.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl

    Optional, encrypted vault password

    vault_password: ${{secrets.VAULT_PASSWORD}}

    Optional, galaxy requirements filepath

    requirements: galaxy-requirements.yml

    Optional, additional flags to pass to ansible-playbook

    options: |
    --inventory .hosts
    --limit group1
    --extra-vars hello=there
    --verbose

I would like an optional add for a file location where my ansible-vault file is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant