1
0
Fork 0
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:
Felix Fontein 2019-03-05 22:54:43 +01:00 committed by Matt Clay
parent 7a0b4a5117
commit 68c22fad5e

View file

@ -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 #######################################