Ansible
item.key does not expand in default filter
Archives
Ansible Project
ansible-project
Brian_Coca
(Brian Coca)
March 22, 2016, 10:08pm
1
moustaches do not stack
home=“{{ item.value.home | default(”/home/" + item.key) }}"
Related topics
Topic
Replies
Views
Activity
How can I set a default that includes information from a variable?
Ansible Project
ubuntu
4
29
September 7, 2017
Interpolation in Jinja2 default() values
Ansible Project
2
9
September 8, 2015
with_items and default filter with empty list not working in ansible 1.8.1
Ansible Project
1
6
November 30, 2014
Im generating a hosts file based on my inventory
Ansible Project
ansible-project
0
1
January 14, 2021
Default variables in with_items dict
Ansible Project
3
4
March 26, 2014