# iosxr\_config - config change via template file touching multiple sections

**URL:** <https://forum.ansible.com/t/iosxr-config-config-change-via-template-file-touching-multiple-sections/25334>\
**Category:** Ansible Project\
**Created:** [August 25, 2017, 3:31pm UTC](https://forum.ansible.com/t/iosxr-config-config-change-via-template-file-touching-multiple-sections/25334 "2017-08-25T15:31:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Nothnagel](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@Tim\_Nothnagel](https://forum.ansible.com/u/Tim_Nothnagel)\
**Post date:** [August 25, 2017, 3:31pm UTC](https://forum.ansible.com/t/iosxr-config-config-change-via-template-file-touching-multiple-sections/25334/1 "2017-08-25T15:31:02Z")

</div>

Hi all,

I have created a template file, which touches multiple sections, among others includes physical interfaces as well as other protocols like BGP.  
I tried to apply this via ‘src:’, but it seems to replace the entire config only. I tried a few other things, e.g. the use of ‘match’ without success.

The goal is to build a configuration template for creating a service and deploy this via Ansible on multiple devices.

Is there any way to make multiple config changes via template file?  
At the moment, it seems to be a bit cumbersome to do this via ‘lines’.

Playbook:
