[ansible-project] Re: Access ansible list in python script.

2015-12-10 Thread anoop . kolari
Hi Mike, Thank you for your response. I resolved this by following steps. 1. I quoted the arguments passed with the command like python /home/vagrant/setup/configs/update_installed_app.py "*['django-allauth', 'test']*" 2. In python script I can access it as a string. Then using python 'ast'

[ansible-project] Re: Access ansible list in python script.

2015-12-10 Thread Mike Biancaniello
Instead of passing a python list, can you pass a json string? Then, inside the py script, just use json.loads(). -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email