service: rename secrets return variable
This commit is contained in:
@@ -93,7 +93,7 @@ argument_specs:
|
||||
description:
|
||||
- A list of secrets available to the service container in /run/secrets/<service name>-<secret name>
|
||||
- >
|
||||
A dict of secrets and their values (including autogenerated values) is available as `_service_podman_secrets` for use
|
||||
A dict of secrets and their values (including autogenerated values) is available as `service_podman_secrets` for use
|
||||
in tepmlates or environment variables. This should only be used if the container doesn't support reading the secret from file
|
||||
type: list
|
||||
required: false
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
- name: Store secrets in a variable for later
|
||||
ansible.builtin.set_fact:
|
||||
_service_podman_secrets: >
|
||||
service_podman_secrets: >
|
||||
{{ _service_podman_secret_info.secrets
|
||||
| map(attribute='Spec.Name')
|
||||
| zip(_service_podman_secret_info.secrets | map(attribute='SecretData'))
|
||||
|
||||
Reference in New Issue
Block a user