# Switch config template

**URL:** <https://forum.ansible.com/t/switch-config-template/26672>\
**Category:** Ansible Project\
**Created:** [February 6, 2018, 2:18pm UTC](https://forum.ansible.com/t/switch-config-template/26672 "2018-02-06T14:18:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surjeet\_Singh](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Surjeet\_Singh](https://forum.ansible.com/u/Surjeet_Singh)\
**Post date:** [February 6, 2018, 2:18pm UTC](https://forum.ansible.com/t/switch-config-template/26672/1 "2018-02-06T14:18:33Z")

</div>

Hi All,

I am working to prepare config template for one of my on going project, where i have four type of devices to create template and push the config. i have made my strategy to how to deal with this.

now i want write my play book to check condition under the device\_type variable and create config accordingly to device type let’s say if it is core get the veritable from multiple dict(l2vlan,l3vlan,core\_interfaces), same for access and others.

so my question, is there any way to match variable. also tell the play book to look on multiple dict ?

regards/Surjeet
