vt.debian/docker

Installs Docker and Compose.

Role variables

List of default variables available in the inventory:

---
# Docker Compose version
#
# See https://github.com/docker/compose/releases
docker_compose_version: 1.21.2

# Python bindings version
#
# See Ansible documentation for module compatibility and requirements:
# - https://docs.ansible.com/ansible/latest/modules/docker_container_module.html
# - https://docs.ansible.com/ansible/latest/modules/docker_network_module.html
# - https://docs.ansible.com/ansible/latest/modules/docker_volume_module.html
docker_python_module_version: 3.3.0

# IP address used when listening over TCP for remote access
#
# Set to 0.0.0.0 to listen on all interfaces to allow remote connections
docker_tcp_host: 127.0.0.1

# TCP port for remote access
#
# See https://docs.docker.com/install/linux/linux-postinstall/
docker_tcp_port: 2375

# Daemon listen options
docker_listen_hosts:
  - "unix:///var/run/docker.sock"
  - "tcp://{{ docker_tcp_host }}:{{ docker_tcp_port }}"

# Whether to use iptables
#
# Disable this when using a firewall on the same host as the docker daemon:
# - https://svenv.nl/unixandlinux/dockerufw/
# - https://askubuntu.com/q/652556
# - https://chjdev.com/2016/06/08/docker-ufw/
docker_use_iptables: yes