Community Docker Collection for Ansible: modules and plugins for working with Docker - GitHub - ansible-collections/community.docker: Community Docker ...
Dec 21, 2021 · list / elements=string. List of ports to publish from the container to the host. Use docker CLI syntax: 8000, 9000:8000, or 0.0.0.0:9000:8000, where 8000 is a container port, 9000 is a host port, and 0.0.0.0 is a host interface. Port ranges can be used for source and destination ports.
Plugin Index . These are the plugins in the community.docker collection ... docker_containers – Ansible dynamic inventory plugin for Docker containers.
21.12.2021 · Synopsis . Run commands or put/fetch files to an existing docker container. Uses the Docker CLI to execute commands in the container. If you prefer to directly connect to the Docker daemon, use the community.docker.docker_api connection plugin.
Dec 21, 2021 · When connecting to Docker daemon with TLS, you might need to install additional Python packages. For the Docker SDK for Python, version 2.4 or newer, this can be done by installing docker[tls] with ansible.builtin.pip. Note that the Docker SDK for Python only allows to specify the path to the Docker configuration for very few functions.
09.12.2021 · It is not included in ansible-core . To check whether it is installed, run ansible-galaxy collection list. To install it, use: ansible-galaxy collection install community.docker. To use it in a playbook, specify: community.docker.docker_stack. Synopsis.
Dec 21, 2021 · Get inventory hosts from Docker Machine. Uses a YAML configuration file that ends with docker_machine. (yml|yaml). The plugin sets standard host variables ansible_host, ansible_port, ansible_user and ansible_ssh_private_key. The plugin stores the Docker Machine ‘env’ output variables in dm_ prefixed host variables.
Dec 21, 2021 · Synopsis . Run commands or put/fetch files to an existing docker container. Uses the Docker CLI to execute commands in the container. If you prefer to directly connect to the Docker daemon, use the community.docker.docker_api connection plugin.