# Storing Arrays in variable

**URL:** <https://forum.ansible.com/t/storing-arrays-in-variable/22142>\
**Category:** Ansible Project\
**Created:** [July 28, 2016, 3:33am UTC](https://forum.ansible.com/t/storing-arrays-in-variable/22142 "2016-07-28T03:33:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mona\_Gopal](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Post date:** [July 28, 2016, 3:33am UTC](https://forum.ansible.com/t/storing-arrays-in-variable/22142/1 "2016-07-28T03:33:16Z")

</div>

Dear All,

I have a file with the below content:

## NexGen SS7 maximum allowed configuration file

MAXIMUM\_INSTANCES = 2  
MAXIMUM\_LINKS = 0  
MTP2 = NO  
SCTP = YES  
M2UA = NO  
MTP3 = NO  
M3UA = YES  
SCCP = YES  
TCAP = YES  
**MAC = 441ea15e6f44,441ea15e6f46,441ea15e4ff8,441ea15e4ffa**  
LIC-START-TIME = 00/00/0000  
LIC-END-TIME = 31/12/9999

And my requirement is to fetch each of the MAC value and pass it as an argument to script module to different hosts **441ea15e6f44, 441ea15e6f46, 441ea15e4ff8, 441ea15e4ffa**

How do I go about doing it??

Thanks in advance,  
Mona G
