container: Add podman secret support

This commit is contained in:
uumas
2024-11-11 11:51:22 +02:00
parent d1a4a3c711
commit eff2e908fb
4 changed files with 29 additions and 0 deletions

View File

@@ -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