# Debugging templates

**URL:** <https://forum.ansible.com/t/debugging-templates/15754>\
**Category:** Ansible Project\
**Created:** [July 24, 2014, 6:46am UTC](https://forum.ansible.com/t/debugging-templates/15754 "2014-07-24T06:46:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Clarkson](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Matt\_Clarkson](https://forum.ansible.com/u/Matt_Clarkson)\
**Post date:** [July 24, 2014, 6:46am UTC](https://forum.ansible.com/t/debugging-templates/15754/1 "2014-07-24T06:46:01Z")

</div>

Hi,

I’m looking for a way to quickly render/debug template files populated with variables from ec2.

My strategy is to write a playbook that discovers that facts then runs the template module locally.

Here is my current playbook:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [July 24, 2014, 11:06am UTC](https://forum.ansible.com/t/debugging-templates/15754/2 "2014-07-24T11:06:03Z")

</div>

Your playbook appears to be manually typed in as I would expect to see tasks starting with a “-”.

Can you please be sure to copy/paste the actual playbook.

I say this because even the first task is not correctly formatted, otherwise I would suggest this error with respect to the second, and also know we have error detection to make sure “tasks” is a list and suggest changes appropriately.

---

<div class="post-metadata">

**Author:** ![Matt\_Clarkson](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Matt\_Clarkson](https://forum.ansible.com/u/Matt_Clarkson)\
**Post date:** [July 25, 2014, 3:34am UTC](https://forum.ansible.com/t/debugging-templates/15754/3 "2014-07-25T03:34:21Z")

</div>

Hi Michael,

Thanks for your response. The config in my original email was as it was in my playbook. That being said, your hint to add list item delimiters in front of my tasks did the trick. I am now able to run the tasks. Thanks for that.

MTC
