# looping over list to use as role variables

**URL:** <https://forum.ansible.com/t/looping-over-list-to-use-as-role-variables/20746>\
**Category:** Ansible Project\
**Created:** [March 2, 2016, 1:38pm UTC](https://forum.ansible.com/t/looping-over-list-to-use-as-role-variables/20746 "2016-03-02T13:38:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![basnijholt](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@basnijholt](https://forum.ansible.com/u/basnijholt)\
**Post date:** [March 2, 2016, 1:38pm UTC](https://forum.ansible.com/t/looping-over-list-to-use-as-role-variables/20746/1 "2016-03-02T13:38:56Z")

</div>

Hi all,

I would like to use ansible to spawn (and later prune) a list of `jupyter notebook` servers.

I now do the following:
