not able to echo value of hostvars in another host

The following Result:-

TASK [debug] *******************************************************************
task path: /etc/ansible/playbooks/test.yaml:59
ok: [127.0.0.1] => {
“hostvars[groups[‘msliv’][0]][‘downgraderpmversion’][‘stdout’]”: “5.42.0-201809042105.733e1aa”
}

TASK [shell] *******************************************************************
task path: /etc/ansible/playbooks/test.yaml:61
changed: [127.0.0.1] => {“changed”: true, “cmd”: “echo hostvars[groups[‘msliv’][0]][‘downgraderpmversion’][‘stdout’]”, “delta”: “0:00:01.219563”, “end”: “2019-07-30 14:14:25.187306”, “rc”: 0, “start”: “2019-07-30 14:14:23.967743”, “stderr”: “”, “stderr_lines”: , “stdout”: “hostvars[groups[msliv][0]][downgraderpmversion][stdout]”, “stdout_lines”: [“hostvars[groups[msliv][0]][downgraderpmversion][stdout]”]}

Guies Anyone help one this.