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

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

Wish I could edit - INI format (not int)

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"]'

ini format a list is just comma separated, loose the

diff note, that setting is not configurable by users.