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

Question: How do I access Key Store Keys in a playbook? #2117

Open
MichaelMrt opened this issue Jun 19, 2024 · 1 comment
Open

Question: How do I access Key Store Keys in a playbook? #2117

MichaelMrt opened this issue Jun 19, 2024 · 1 comment
Labels

Comments

@MichaelMrt
Copy link

Question

I have created a Key in the Keystore for a db-user-password and picked login with password while keeping the optional Login empty.

Now I need to access this key through a var in a Playbook to connect to a database.
The documentation is not showing how to do that, also #919 and #972 explain how to store it in the UI, but not how to reference the Key in a playbook.

Is this even possible?

I tried something like:

- name: Key Store access
  hosts: my_host

  tasks:
    - name: print key
      debug:
        msg: "{{ lookup('env', 'SECRET_KEY') }}"

Related to

Documentation

@timteka
Copy link

timteka commented Jul 18, 2024

Same problem. We want to securely distribute ssh private keys across numerous servers. But stuck with unclear vault use cases.

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

No branches or pull requests

2 participants