SyntaxFix
Write A Post
Hire A Developer
Questions
The question is quite old, but what about:
- hosts: 'localhost' tasks: - debug: msg: "{{ ( a | default({})).get('nested', {}).get('var','bar') }}"
It looks less cumbersome to me...