I have a list like below, and I need to select the sequence which has “name” attribute equal to “lo0”. I use this selectattr statement {% set lo0 = interfaces|selectattr(“name”, “equalto”, lo0) | first%}
But while running the playbook throws me an error {‘msg’: “TemplateRuntimeError: no test named ‘equalto’”, ‘failed’: True}