# xml file as template

**URL:** <https://forum.ansible.com/t/xml-file-as-template/24339>\
**Category:** Ansible Developer\
**Created:** [April 27, 2017, 2:04pm UTC](https://forum.ansible.com/t/xml-file-as-template/24339 "2017-04-27T14:04:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_Dasari](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Anand\_Dasari](https://forum.ansible.com/u/Anand_Dasari)\
**Post date:** [April 27, 2017, 2:04pm UTC](https://forum.ansible.com/t/xml-file-as-template/24339/1 "2017-04-27T14:04:37Z")

</div>

Is there a way I can make xml file as template?

i have the following file content

${LOG\_DIR}/my-service.log \>${LOG\_DIR}/my-service.%d{yyyy-MM-dd}.log

The value in RED wil lchange depends upon env, when i addded this content as jinja2 template it failed  
Any ideas please?

Thanks
