Skip to content

Commit c6a80a5

Browse files
authored
Add example with quotes in command to docs (#623)
Fix #449 Signed-off-by: Sagi Shnaidman <[email protected]>
1 parent 11f9ede commit c6a80a5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

plugins/modules/podman_container.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,16 @@
932932
image: busybox
933933
log_options: path=/var/log/container/mycontainer.json
934934
log_driver: k8s-file
935+
936+
- name: Run container with complex command with quotes
937+
containers.podman.podman_container:
938+
name: mycontainer
939+
image: certbot/certbot
940+
command:
941+
- renew
942+
- --deploy-hook
943+
- "echo 1 > /var/lib/letsencrypt/complete"
944+
935945
"""
936946

937947
RETURN = r"""

0 commit comments

Comments
 (0)