cancel
Showing results for 
Search instead for 
Did you mean: 
ChrisGR
Flight Engineer
Flight Engineer
  • 1,979 Views

Ansible - Registered variable stdout - AnsibleUndefined type

Hello all,

A topic that baffles me a bit:

Let's say that I store the output of the command (teamdctl teamname state dump) to a separate variable (using register).

Example:

command: teamdctl team0 state dump

register: state

If I check the type of state.stdout (with type_debug), I get AnsibleUndefined.

If I store state.stdout to a separate var (with set_fact), if I check the type of the var, then I get dict.

Of course, the second one is the expected one, in order to proceed with further processing.

Any ideas why this is happening?

Thanks in advance,

Chris

Labels (1)
0 Kudos
1 Reply
OMG
Cadet
Cadet
  • 1,614 Views

for me was bcs using similler name of tasks that skipped so was rewritten by failler task so make sure to debug it by print the register var 

0 Kudos
Join the discussion
You must log in to join this conversation.