Change in the docker_swarm_info behaviour.
This commit is contained in:
parent
260bfa8fb6
commit
a1f69bae9e
|
@ -16,20 +16,19 @@
|
|||
- docker_swarm_manager_main_node | bool
|
||||
tags: [ 'docker', 'docker_swarm', 'docker_swarm_init' ]
|
||||
|
||||
- block:
|
||||
- name: Get swarm status information
|
||||
community.docker.docker_swarm_info:
|
||||
state: inspect
|
||||
register: swarm_info_data
|
||||
|
||||
- name: Get the swarm manager token
|
||||
set_fact:
|
||||
docker_swarm_mgr_token: '{{ swarm_info_data.swarm_facts.JoinTokens.Manager }}'
|
||||
cacheable: True
|
||||
|
||||
- name: swarm_mgr | Setup the docker swarm
|
||||
when: docker_swarm_manager
|
||||
delegate_to: '{{ docker_swarm_manager_main_node_address }}'
|
||||
tags: [ 'docker', 'docker_swarm' ]
|
||||
tags: ['docker', 'docker_swarm']
|
||||
block:
|
||||
- name: swarm_mgr | Get swarm status information
|
||||
community.docker.docker_swarm_info:
|
||||
register: swarm_info_data
|
||||
|
||||
- name: swarm_mgr | Get the swarm manager token
|
||||
set_fact:
|
||||
docker_swarm_mgr_token: '{{ swarm_info_data.swarm_facts.JoinTokens.Manager }}'
|
||||
cacheable: true
|
||||
|
||||
- block:
|
||||
- name: Add some manager nodes to the docker swarm cluster
|
||||
|
|
Loading…
Reference in New Issue