File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 6767
6868EXAMPLES = r'''
6969- name: Execute a command with workdir
70- containers.podman.podman_container_exec:
70+ containers.podman.podman_container_exec:
7171 name: ubi8
7272 command: "cat redhat-release"
7373 workdir: /etc
7474
7575- name: Execute a command with a list of args and enviroment variables
76- containers.podman.podman_container_exec:
76+ containers.podman.podman_container_exec:
7777 name: test_container
7878 argv:
79- - /bin/sh
80- - -c
81- - echo $HELLO $BYE
79+ - /bin/sh
80+ - -c
81+ - echo $HELLO $BYE
8282 env:
83- HELLO: hello world
84- BYE: goodbye world
83+ HELLO: hello world
84+ BYE: goodbye world
8585
8686- name: Execute command in background by using detach
87- containers.podman.podman_container_exec:
87+ containers.podman.podman_container_exec:
8888 name: detach_container
8989 command: "cat redhat-release"
9090 detach: true
115115 - The ID of the exec session.
116116'''
117117
118- import shlex
119- from ansible .module_utils .six import string_types
120- from ansible .module_utils ._text import to_text
121- from ansible .module_utils .basic import AnsibleModule
122118from ansible_collections .containers .podman .plugins .module_utils .podman .common import run_podman_command
123-
119+ from ansible .module_utils .basic import AnsibleModule
120+ from ansible .module_utils ._text import to_text
121+ from ansible .module_utils .six import string_types
122+ import shlex
124123
125124def run_container_exec (module : AnsibleModule ) -> dict :
126125 '''
You can’t perform that action at this time.
0 commit comments