0

newbie on ansible i try to check if a json dict output exist from the proxmox API, but seems like i don't register the output correctly:

here is the yaml : https://pastebin.com/XdA5PMNg

and here is the debug : https://pastebin.com/qxbsJ8rE

Thanks all

2 Answers2

0

The output goes to mystuff.stdout.stdout which is confusing.

Use register: mystuff instead of register: mystuff.stdout and you're good.

kubanczyk
  • 13,812
  • 5
  • 41
  • 55
0

it works now i changed the resgister from cloudinit.stdout to cloudinit and i use the output like json.cloudinit.data.["ide2"] is not defined