# format variable inside list

**URL:** <https://forum.ansible.com/t/format-variable-inside-list/17727>\
**Category:** Ansible Project\
**Created:** [March 12, 2015, 9:44am UTC](https://forum.ansible.com/t/format-variable-inside-list/17727 "2015-03-12T09:44:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arba\_Sasmoyo](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@Arba\_Sasmoyo](https://forum.ansible.com/u/Arba_Sasmoyo)\
**Post date:** [March 12, 2015, 9:44am UTC](https://forum.ansible.com/t/format-variable-inside-list/17727/1 "2015-03-12T09:44:54Z")

</div>

hi, i have a question how to format variable inside list and print them to a template. i want to install php with memcache, so i have php servers group and memcache servers group. in order to integrate them, i have to modify php.ini and add each of memcache server’s ip to it. so i have to modify this line  
session.save\_path=“tcp://10.10.250.111:11211,tcp://10.10.250.112:11211”  
how to format memcache servers member group to something like that? thanks 😃
