# How to provide a \[item1, item2\] list as argument using ini format.

**URL:** <https://forum.ansible.com/t/how-to-provide-a-item1-item2-list-as-argument-using-ini-format/34155>\
**Category:** Ansible Project\
**Created:** [November 4, 2020, 7:41pm UTC](https://forum.ansible.com/t/how-to-provide-a-item1-item2-list-as-argument-using-ini-format/34155 "2020-11-04T19:41:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AIXTools](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@AIXTools](https://forum.ansible.com/u/AIXTools)\
**Post date:** [November 4, 2020, 7:41pm UTC](https://forum.ansible.com/t/how-to-provide-a-item1-item2-list-as-argument-using-ini-format/34155/1 "2020-11-04T19:41:06Z")

</div>

In ANSIBLE.CFG, using int format I need to add an argument such as:

interpreter\_python\_fallback = [“/opt/bin/python3.6”, “python3”, “python3.7”, “python3.6”, “python3.5”, “python2.7”, “python2.6”, “python”, “/opt/freeware/bin/python”, “/opt/bin/python3”]

I have been told that the form is not ‘recognized’ as a list argument. So, is there a way?

Many thanks.

M

---

<div class="post-metadata">

**Author:** ![AIXTools](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@AIXTools](https://forum.ansible.com/u/AIXTools)\
**Post date:** [November 4, 2020, 7:42pm UTC](https://forum.ansible.com/t/how-to-provide-a-item1-item2-list-as-argument-using-ini-format/34155/2 "2020-11-04T19:42:20Z")

</div>

Wish I could edit - INI format (not int)

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [November 5, 2020, 4:48pm UTC](https://forum.ansible.com/t/how-to-provide-a-item1-item2-list-as-argument-using-ini-format/34155/3 "2020-11-05T16:48:27Z")

</div>

You need to quote the whole thing, but with a different quote than the  
one you already use to quote the individual list items.  
In your case add single quotes around the value.  
Also, there should not be any spaces between the var name, the equal  
sign, and the value.  
Concluding:

interpreter\_python\_fallback='["/opt/bin/python3.6", "python3",  
"python3.7", "python3.6", "python3.5", "python2.7", "python2.6",  
"python", "/opt/freeware/bin/python", "/opt/bin/python3"]'

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [November 5, 2020, 5:46pm UTC](https://forum.ansible.com/t/how-to-provide-a-item1-item2-list-as-argument-using-ini-format/34155/4 "2020-11-05T17:46:21Z")

</div>

ini format a list is just comma separated, loose the

diff note, that setting is not configurable by users.
