Mission Specialist
Mission Specialist

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).


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,


Labels (1)
0 Kudos
0 Replies
Join the discussion
You must log in to join this conversation.