From fbc52732c0162fcac73ced5588918444e793fa6a Mon Sep 17 00:00:00 2001 From: Felipe Lopez Date: Sun, 21 Apr 2024 22:42:48 -0400 Subject: [PATCH] Added dynamic arguments to podman container creation example --- molecule/podman/create.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/molecule/podman/create.yml b/molecule/podman/create.yml index f87b4a13cd..f582b845f0 100644 --- a/molecule/podman/create.yml +++ b/molecule/podman/create.yml @@ -14,8 +14,12 @@ containers.podman.podman_container: name: "{{ item.name }}" image: "{{ item.image }}" + privileged: "{{ item.privileged | default(omit) }}" + volumes: "{{ item.volumes | default(omit) }}" + capabilities: "{{ item.capabilities | default(omit) }}" + systemd: "{{ item.systemd | default(omit) }}" state: started - command: sleep 1d + command: "{{ item.command | default('sleep 1d') }}" # bash -c "while true; do sleep 10000; done" log_driver: json-file register: result