On Monday, May 23, 2016 at 7:09:08 PM UTC+1, Brian Coca wrote: > > The 'local' execution might be the most common use of cloud modules, but > even then `env python` might not be the correct python, for localhost > ansible replaces with the 'currently executing python' (sys.executable) > which should be the correct one. >
Are you sure it does that? I even tried with the "devel" branch and it did not do that: $ ansible -i contrib/inventory/azure_rm.py azure ERROR! Inventory script (contrib/inventory/azure_rm.py) had an execution error: The Azure python sdk is not installed (try 'pip install azure') - No module named msrestazure.azure_exceptions contrib/inventory/azure_rm.py:22: Error parsing host definition ''''': No closing quotation But I do have it installed in this environment: (ansible)[andre@Giedi ~/work/vc/ansible]$ python -c "import msrestazure.azure_exceptions" (ansible)[andre@Giedi ~/work/vc/ansible]$ If I change the /usr/bin/python call to use the "env" in azure_rm.py everything works. André > -- 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 to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a1f8fbf5-8420-41e0-8d6f-e034e3c4d723%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
