# Iterating over a template: task with a list of dictionary objects?

**URL:** <https://forum.ansible.com/t/iterating-over-a-template-task-with-a-list-of-dictionary-objects/14006>\
**Category:** Ansible Project\
**Created:** [November 26, 2013, 5:23pm UTC](https://forum.ansible.com/t/iterating-over-a-template-task-with-a-list-of-dictionary-objects/14006 "2013-11-26T17:23:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danrough](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/danrough/32/3541_2.png) [@danrough](https://forum.ansible.com/u/danrough)\
**Post date:** [November 26, 2013, 5:23pm UTC](https://forum.ansible.com/t/iterating-over-a-template-task-with-a-list-of-dictionary-objects/14006/1 "2013-11-26T17:23:28Z")

</div>

Hi there,

I’d like to be able to start 3 services that I am deploying by iterating over one generic template that I have for them.

Is it possible to pass variables through to the template task using with\_items and a dictionary of variables? I had hoped that I’d be able to use something like this (simplified example) here: [https://gist.github.com/danrough/7661172](https://gist.github.com/danrough/7661172).

Ideas?

Dan.
