How can I pass yaml array to --extra-vars in Ansible playbook. Ansible documentation does not declares its syntax nor I can find that on any internet resource.<
--extra-vars
In addition to answer from jarv, here is my savior note:
In case someone wants to pass in an array of integers, this works:
--extra-vars '{"my_params":[40,50,10,20,30]}'
Note: there should be no space in between the numbers in the array you pass! Removing space solved my problem!