docker_compose module doesn't parse properly the DOCKER_TIMEOUT environement variable #551
Labels
bug
Something isn't working
docker-compose-v1
Docker Compose v1
docker-plain
plain Docker (no swarm, no compose, no stack)
docker-swarm
Docker Swarm
SUMMARY
When I set a
DOCKER_TIMEOUT
environment variable on a managed node. Then docker_compose module is not able to start or stop containers.For example, when I set
DOCKER_TIMEOUT
to 1200 then the variable is detected by Ansible but reported as having a wrong type (the logs contains "timeout value connect was 1200, but it must be an int, float or None."The issue has a workarounds:
timeout: 1200
inside the yaml task definiton to override thisHowever it would be nice being able to use the managed node default from the environment variable.
ISSUE TYPE
COMPONENT NAME
docker_compose
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Control node: Arch linux
Managed nodes: Ubuntu 22, Arch linux
Docker version:
STEPS TO REPRODUCE
Steps to reproduce
DOCKER_TIMEOUT=1200
in /etc/profile on the managed nodeExample playbook
EXPECTED RESULTS
The docker compose up finishes successfully
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: