New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter tags #16143
Filter tags #16143
Conversation
This is complement to instance_filters which can only do OR when it have more than one rule. This filter will be executed after retrieving all tags (instance_filters is send with the AWS API call so the instances are filtered server-side). only if all tags specified exist and the value of the tag match they will be included in the final list.
ba88361
to
8ac6c29
Compare
@jordiclariana Greetings! Thanks for taking the time to open this pullrequest. In order for the community to handle your pullrequest effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this pullrequest with this template: |
Hi, @jordiclariana. We are not working on adding features to the inventory scripts since adding the inventory plugins (new in Ansible 2.4). I think this is something you can already do with the aws_ec2 inventory plugin using the constructed option |
ISSUE TYPE
ANSIBLE VERSION
SUMMARY
Add filter_tags option to filter tags after retrieve them.
This is complement to instance_filters which can only do OR when it have more than one rule.
This filter will be executed after retrieving all tags (instance_filters is send with the
AWS API call so the instances are filtered server-side). only if all tags specified exist
and the value of the tag match they will be included in the final list.