Fix return variable name.

pull/53434/head
Felix Fontein 6 years ago committed by Matt Clay
parent 7a0b4a5117
commit 68c22fad5e

@ -36,12 +36,12 @@
- name: assert reading docker swarm node facts - name: assert reading docker swarm node facts
assert: assert:
that: that:
- 'output.nodes_facts | length > 0' - 'output.nodes | length > 0'
- 'output.nodes_facts[0].ID is string' - 'output.nodes[0].ID is string'
- name: Register node ID - name: Register node ID
set_fact: set_fact:
nodeid: "{{ output.nodes_facts[0].ID }}" nodeid: "{{ output.nodes[0].ID }}"
#################################################################### ####################################################################
## Set node as swarm manager ####################################### ## Set node as swarm manager #######################################

Loading…
Cancel
Save