ansible-roles/library/roles/docker/defaults/main.yml

36 lines
1.1 KiB
YAML

---
docker_install: False
docker_repo_key_url: 'https://download.docker.com/linux/ubuntu/gpg'
# Set to the Debian distribution name if not Ubuntu
docker_distribution: '{{ ansible_distribution_release | lower }}'
docker_repo_old: 'deb https://apt.dockerproject.org/repo {{ ansible_distribution | lower }}-{{ docker_distribution }} main'
docker_repo: 'deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable'
# Swarm
docker_swarm: False
docker_swarm_manager: False
docker_swarm_manager_availability: 'drain'
docker_swarm_node: False
docker_swarm_node_availability: 'active'
docker_swarm_allowed_hosts:
- '0.0.0.0/0'
# Set this to one of the manager hostnames to be able to initialize the cluster
docker_swarm_manager_main_node_hostname: localhost
# Set this on one of the masters
docker_swarm_manager_main_node: False
docker_pkg_status: latest
docker_packages:
- docker-ce
- docker-ce-cli
docker_run_as_docker_user: True
docker_user_home: /home/docker
docker_defaults_file: /etc/default/docker
docker_enable_tcp_socket: False
docker_tcp_socket_port: 2375
docker_api_port: 2376
docker_tcp_socket_host: 127.0.0.1