Thanks :)

On Thursday, 26 January 2017 23:13:53 UTC+2, Yordan Borisov wrote:
>
> I have vars where I put something like this:
>
> vars/main.yml
>
> hello_port: 80
>
> world_port: 81
>
>
> in my ansbile file I load the vars with 
>   vars_files:
>      - ./vars/main.yml
>
> and after that I have task with iterate using with_items:
>
>      - debug:
>           msg: "{{ (item + '_port') }}"
>        with_items: "{{ m_name }}"
>
> But I've got as output 
> hello_port
> world_port
>
> not the values. 
> Is there a way to evaluate the dynamically created variables name - to get 
> the value?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/41a7e782-a0f5-45e2-99f0-ebcc48c712a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to