[ansible-project] Re: String to vars not working anymore in Ansible v1.8.x

2015-02-23 Thread Khuong Dinh Pham
Hi It does not work because get_something can't parse the string "prefix_main_postfix" I need the value. If I remove "| get_something" like this: {{ 'prefix_' + item.env + '_postfix' }} it just print the text 'prefix_main_postfix' Den mandag den 23. februar 2015 kl. 16.34.08 UTC+1 skrev Jonat

[ansible-project] Re: String to vars not working anymore in Ansible v1.8.x

2015-02-23 Thread Jonathan Davila
Try taking out the middle curly braces. So like: {{ 'prefix_' + item.env + '_postfix' | get_something }} If you are declaring vars with the vars construct, you don't need to reference vars as a dict, the key/values are directly available. Let me know if that helps. On Sunday, February 22, 2015