Concatenate text and variable for a key inside a dict

Hi,

I would like to define a dict in group_vars/all.yml where a key inside this dict would consist of a fixed string concatened to the result of : “{{ hostvars[inventory_hostname][‘ansible_hostname’] }}”.

This should looks like following:

✘ root@lab:~/playbook# cat group_vars/all.yml

No one for this?
I’m also getting this problem, it’d be nice if we could get some clarification.

Thanks!