Hi All,
First of all, Happy New Year to everybody.
I would like to know if it is possible to pass a variable to a filter.
I have this code that works with a predefined text:
"{{ ec2_vpc_out.subnets | get_subnets(‘Name’, ’TheName’) | first }}”
Now I need to replace the ‘TheName’ argument with a variable. E.g.:
"{{ ec2_vpc_out.subnets | get_subnets(‘Name’, <item.name>) | first }}”
Is there a way of doing this ?
Thanks,
Gustavo Aguiar