2016-11-05 05:40:14 +08:00
|
|
|
[Service]
|
2017-01-05 23:32:08 +08:00
|
|
|
{% if ansible_os_family in ["CoreOS", "Container Linux by CoreOS"] %}
|
2016-12-15 21:12:34 +08:00
|
|
|
Environment="DOCKER_OPT_BIP=--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }}"
|
|
|
|
{% else %}
|
2016-11-05 05:40:14 +08:00
|
|
|
Environment="DOCKER_NETWORK_OPTIONS=--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }}"
|
2016-12-15 21:12:34 +08:00
|
|
|
{% endif %}
|