Make randomly generated secret length configurable
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
- name: Create secrets for container {{ container_name }}
|
||||
containers.podman.podman_secret:
|
||||
name: "{{ item.name }}"
|
||||
data: "{{ item.value | default(lookup('community.general.random_string', special=false, length=128)) }}"
|
||||
data: "{{ item.value | default(lookup('community.general.random_string', special=false, length=item.length | default(128))) }}"
|
||||
skip_existing: "{{ item.value is not defined }}"
|
||||
no_log: true
|
||||
loop: "{{ container_secrets }}"
|
||||
|
||||
Reference in New Issue
Block a user