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

Feature Request: Allow user to pass value of environment to ee when using docker/podman process isolation #1405

Closed
markafarrell opened this issue Dec 6, 2024 · 1 comment

Comments

@markafarrell
Copy link

I would like to be able to do the following:

export A_SUPER_SECRET_VALUE=something-secret
ansible-runner run . --playbook something.yml

And my playbook would be able to reference the value of the environment variable A_SUPER_SECRET_VALUE during the play
e.g.

- ansible.builtin.set_fact:
    some_var: "{{ lookup('env', 'A_SUPER_SECRET_VALUE'

Currently do to this you need to write the value in plain text to env/envvars instead of just being able to store the secret in an environment variable.

@github-actions github-actions bot added the needs_triage New item that needs to be triaged label Dec 6, 2024
@markafarrell markafarrell changed the title Feature Request: Allow user to pass value of environment to ee when using docker/podnman process isolation Feature Request: Allow user to pass value of environment to ee when using docker/podman process isolation Dec 6, 2024
@markafarrell
Copy link
Author

I actually figured out a way to do this.

export A_SUPER_SECRET_VALUE=something-secret
ansible-runner run . --playbook something.yml \
  --container-option=-e \
  --container-option=A_SUPER_SECRET_VALUE

@Shrews Shrews removed the needs_triage New item that needs to be triaged label Dec 6, 2024
@Shrews Shrews closed this as completed Dec 6, 2024
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

2 participants