-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.yml
36 lines (30 loc) · 1.01 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
#docker_package: "docker-ce"
docker_users:
- "{{ ansible_env['SUDO_USER'] | default(ansible_user_id) }}"
docker_directory_path: "/var/lib/docker"
docker_local_socket: "unix:///var/run/docker.sock"
docker_remote_socket: ""
#docker_remote_socket: "tcp://{{ ansible_default_ipv4.address }}:2375"
docker_metrics: true
docker_metrics_port: 8080
docker_registries: []
#docker_registries:
# - url: "registry.example.com"
# user: admin
# pass: password
docker_portainer_pass: ""
docker_portainer_address: "127.0.0.1"
docker_portainer_port: 7000
docker_swarm_enable: false
docker_swarm_interface: "{{ ansible_default_ipv4.interface }}"
docker_swarm_managers_group: "docker-swarm-managers"
docker_swarm_port: "2377"
docker_configuration:
iptables: true
dns: "{{ ansible_dns.nameservers | difference(['127.0.0.1', '127.0.1.1']) }}"
data-root: "{{ docker_directory_path }}"
insecure-registries: "{{ docker_registries | map(attribute='url') | list | default(omit) }}"
log-driver: "json-file"
log-opts:
max-size: "2G"