Change port each running time from python module

7 views
Skip to first unread message

Idan null

unread,
Jun 19, 2016, 11:01:37 PM6/19/16
to Ansible Project
Hi all,
I'm trying to use the python script that you gave as example:
but I want each connection to use different port (that I will get dynamically from MySQL)
I didn't mange to pass to the host_list variable JSON or give it any other way.
Any idea how I can do it? 
The list of hosts is not always the same, and everytime each host could have different port ( this data I could retrieve as JSON)

Thank you
Reply all
Reply to author
Forward
0 new messages