Merge pull request #10021 from chrismeyersfsu/improvement-tagless
add tagless grouping for destinations without any tags
This commit is contained in:
commit
ef18468e83
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue