[ansible-project] Concatenate text and variable for a key inside a dict

2016-11-28 Thread Guillaume Abrioux
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 --- my_di

[ansible-project] Concatenate text and variable for a key in a dict

2016-11-28 Thread Guillaume Abrioux
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 --- my_di