diff --git a/plugins/modules/docker_compose_v2_exec.py b/plugins/modules/docker_compose_v2_exec.py index b5c274b48..a4919d0c6 100644 --- a/plugins/modules/docker_compose_v2_exec.py +++ b/plugins/modules/docker_compose_v2_exec.py @@ -114,7 +114,8 @@ notes: - If you need to evaluate environment variables of the container in O(command) or O(argv), you need to pass the command - through a shell, like O(command=/bin/sh -c "echo $ENV_VARIABLE"). + through a shell, like O(command=/bin/sh -c "echo $ENV_VARIABLE"). The same needs to be done in case you want to use glob patterns + or other shell features such as redirects. """ EXAMPLES = r""" diff --git a/plugins/modules/docker_compose_v2_run.py b/plugins/modules/docker_compose_v2_run.py index 4b8dce27b..760f6e3c2 100644 --- a/plugins/modules/docker_compose_v2_run.py +++ b/plugins/modules/docker_compose_v2_run.py @@ -182,7 +182,8 @@ notes: - If you need to evaluate environment variables of the container in O(command) or O(argv), you need to pass the command - through a shell, like O(command=/bin/sh -c "echo $ENV_VARIABLE"). + through a shell, like O(command=/bin/sh -c "echo $ENV_VARIABLE"). The same needs to be done in case you want to use glob patterns + or other shell features such as redirects. """ EXAMPLES = r""" diff --git a/plugins/modules/docker_container_exec.py b/plugins/modules/docker_container_exec.py index 28e7b16cc..3eb86daab 100644 --- a/plugins/modules/docker_container_exec.py +++ b/plugins/modules/docker_container_exec.py @@ -101,7 +101,8 @@ closing the connection with Python's C(SSLSocket)s. See U(https://github.com/ansible-collections/community.docker/issues/605) for more information. - If you need to evaluate environment variables of the container in O(command) or O(argv), you need to pass the command - through a shell, like O(command=/bin/sh -c "echo $ENV_VARIABLE"). + through a shell, like O(command=/bin/sh -c "echo $ENV_VARIABLE"). The same needs to be done in case you want to use glob patterns + or other shell features such as redirects. author: - "Felix Fontein (@felixfontein)"