Concatenate text and variable for a key in 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