The EC2 inventory script is an example designed to be customized to your
own needs if the stock version does not fit your needs, but for most people
it does.   I'm also not sure that's the part that deals with stopped hosts
:)

Instances that are disabled intentionally don't show up, because you can't
talk to them -- which is what most people want.

I assume you may be wanting something different - but I'm not sure why.
Sure, they could be put in another group or be given a disabled variable,
but that's not appropriate for most people.

Perhaps a good question for ansible-devel list.




On Wed, Jul 30, 2014 at 8:04 AM, Damjan Georgievski <[email protected]>
wrote:

> ec2.ini says:
>
> # By default, only EC2 instances in the 'running' state are returned. Set
> # 'all_instances' to True to return all instances regardless of state.
> all_instances = True
>
> but ec2.py still seems to ignore stopped hosts because it has this:
>
>         # Select the best destination address
>         if instance.subnet_id:
>             dest = getattr(instance, self.vpc_destination_variable)
>         else:
>             dest =  getattr(instance, self.destination_variable)
>
>         if not dest:
>             # Skip instances we cannot address (e.g. private VPC subnet)
>             return
>
>
> What's the proper solution here?
>
> --
> damjan
>
> --
> 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/4b1f249a-6f98-4cea-96fb-bd23c6865022%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/4b1f249a-6f98-4cea-96fb-bd23c6865022%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 [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/CA%2BnsWgzS6FN1L_GVMj7%3D-ghXvj5Kneh5%2BYzBDYxJ3T6LCPSgfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to