container: Add podman secret support
This commit is contained in:
@@ -8,6 +8,13 @@
|
||||
loop_control:
|
||||
loop_var: network
|
||||
|
||||
- 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)) }}"
|
||||
skip_existing: "{{ item.value is not defined }}"
|
||||
loop: "{{ container_secrets }}"
|
||||
|
||||
- name: Create container service {{ container_name }}
|
||||
ansible.builtin.template:
|
||||
src: container.j2
|
||||
|
||||
Reference in New Issue
Block a user