I am working on a way to register interfaces to use as a variable based on the way the port is configured. For example I want all ports that are configured for a trunk or access vlan 10. I have not found a way to use the jinja2 script I have. The ansible script will go through and make a list of all the interfaces and show the configurations but that is where I am stuck. Any help would be appreciated.