extract remote windows registry value

Hi,
I’m using the playbook to extract registry key of a product using win_reg_stat module

`

  • name: check product installed
    hosts: windows
    tasks:

  • name: phase one
    win_reg_stat:
    path: HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{5ADDC865-7641-4CFB-BD89-6BE1709BD503}
    name: DisplayVersion
    register: LGV

  • name: phase two
    debug:
    var: LGV.exists

`

However the debug output is ““LGV.exists”: “VARIABLE IS NOT DEFINED!””
Any idea what I’m missing here? (my ansible version is ansible 2.3.1.0)

I need to extract in shell a 0 (false) or true (1) after this playbook execution. Thank you!