get dict value from variable key in ansible

后端 未结 1 1848
一整个雨季
一整个雨季 2021-02-19 11:47

Here is my problem I need to get a dict value from key. But the key is also a var. For example, I had an ansible role.

In vars/main.yml, I defined vars

相关标签:
1条回答
  • 2021-02-19 11:53

    The answer is {{ source[location] }}.

    0 讨论(0)
提交回复
热议问题