Add the variable docker_swarm_worker_hostname.
This commit is contained in:
parent
320989d21f
commit
aebf4d44b5
|
@ -6,6 +6,7 @@ docker_swarm_manager: False
|
||||||
docker_swarm_manager_availability: 'drain'
|
docker_swarm_manager_availability: 'drain'
|
||||||
docker_swarm_node: False
|
docker_swarm_node: False
|
||||||
docker_swarm_node_availability: 'active'
|
docker_swarm_node_availability: 'active'
|
||||||
|
docker_swarm_worker_hostname: '{{ ansible_fqdn }}'
|
||||||
docker_swarm_allowed_hosts:
|
docker_swarm_allowed_hosts:
|
||||||
- '0.0.0.0/0'
|
- '0.0.0.0/0'
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
- block:
|
- block:
|
||||||
- name: Set the swarm nodes availability. Default 'active'
|
- name: Set the swarm nodes availability. Default 'active'
|
||||||
docker_node:
|
docker_node:
|
||||||
hostname: '{{ ansible_hostname }}'
|
hostname: '{{ docker_swarm_worker_hostname }}'
|
||||||
availability: '{{ docker_swarm_node_availability }}'
|
availability: '{{ docker_swarm_node_availability }}'
|
||||||
|
|
||||||
when: docker_swarm_node | bool
|
when: docker_swarm_node | bool
|
||||||
|
|
Loading…
Reference in New Issue