Skip to content

Commit

Permalink
set mtu value for ingress network. default to 1350
Browse files Browse the repository at this point in the history
  • Loading branch information
s4ke committed Nov 16, 2022
1 parent 6c9e41e commit cbd9633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swarmsible/roles/docker-swarm-init/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
ignore_errors: true

- set_fact:
__docker_swarm_ingress_network_opt: ""
__docker_swarm_ingress_network_opt: "--opt com.docker.network.driver.mtu={{ docker_swarm_ingress_network_mtu | default('1350') }}"
when: not (docker_swarm_ingress_network_encrypt | default('True') | bool)

- set_fact:
__docker_swarm_ingress_network_opt: "--opt encrypted"
__docker_swarm_ingress_network_opt: "--opt com.docker.network.driver.mtu={{ docker_swarm_ingress_network_mtu | default('1350') }} --opt encrypted"
when: docker_swarm_ingress_network_encrypt | default('True') | bool

- name: Initialize Docker Swarm
Expand Down

0 comments on commit cbd9633

Please sign in to comment.