1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

add tagless grouping for destinations without any tags

This commit is contained in:
Chris Meyers 2015-01-15 16:19:50 -05:00
parent dde32a826f
commit 48d4da3a94

View file

@ -465,6 +465,10 @@ class Ec2Inventory(object):
if self.nested_groups:
self.push_group(self.inventory, 'route53', name)
# Global Tag: instances without tags
if len(instance.tags) == 0:
self.push(self.inventory, 'tag_none', dest)
# Global Tag: tag all EC2 instances
self.push(self.inventory, 'ec2', dest)