mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix return variable name.
This commit is contained in:
parent
7a0b4a5117
commit
68c22fad5e
1 changed files with 3 additions and 3 deletions
|
@ -36,12 +36,12 @@
|
|||
- name: assert reading docker swarm node facts
|
||||
assert:
|
||||
that:
|
||||
- 'output.nodes_facts | length > 0'
|
||||
- 'output.nodes_facts[0].ID is string'
|
||||
- 'output.nodes | length > 0'
|
||||
- 'output.nodes[0].ID is string'
|
||||
|
||||
- name: Register node ID
|
||||
set_fact:
|
||||
nodeid: "{{ output.nodes_facts[0].ID }}"
|
||||
nodeid: "{{ output.nodes[0].ID }}"
|
||||
|
||||
####################################################################
|
||||
## Set node as swarm manager #######################################
|
||||
|
|
Loading…
Reference in a new issue