container: Move secrets to its own tasks file

This commit is contained in:
uumas
2025-03-22 01:31:24 +02:00
parent 79f1be5cbe
commit d5cd823e5a
2 changed files with 11 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
---
- 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 }}"
no_log: true
loop: "{{ container_secrets }}"