Have you perhaps hand-edited (or someone has) ec2.py?



On Fri, Jul 4, 2014 at 1:19 PM, Scott Anderson <scottanderso...@gmail.com>
wrote:

> Very strange, that's right in the middle of a docstring. No reason for it
> to break like that.
>
> What does the result of "/usr/bin/env python --version" say?
>
> Regards,
> -scott
>
>
> On Thursday, July 3, 2014 5:13:48 PM UTC-4, Dan Chan wrote:
>>
>> I have a handful of existing EC2 instances with a specific tag that I
>> would like to target and execute Ansible against. What is the best way to
>> go about this?
>>
>> I tried to use the ec2.py script for EC2 Dynamic Inventory, but ran into
>> issues when trying to execute the script.
>>
>> dchan $ chmod +x ec2.py
>> dchan $ ansible -i ec2.py us-east-1 -m ping
>>   File "/ec2.py", line 292
>>     region '''
>>              ^
>> IndentationError: expected an indented block
>>
>> Is there something I'm doing wrong with the ec2.py script? I'm also
>> unsure about how to incorporate the script into my playbook.
>> Are there any existing modules that I could utilize to solve my problem?
>>
>> Thanks!
>>
>  --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/a07247b9-b69a-491a-857a-34f814157cdb%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/a07247b9-b69a-491a-857a-34f814157cdb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgwmoXRO0K87mbwkkFbmMfu4xg91SrrrfgNVGjtGsBTMNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to