Skip to content
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

Add key split to subtags in ec2.py autodiscover script #12547

Closed
wants to merge 1 commit into from
Closed

Add key split to subtags in ec2.py autodiscover script #12547

wants to merge 1 commit into from

Conversation

jnerin
Copy link
Contributor

@jnerin jnerin commented Sep 28, 2015

Add the option to create subgroups based on splitting the value of the
key tags by whitespace.

AWS Tag & Value:
"private:app" = "app01 app02 app03 app04 app05 app06"

ec2.py groups:
"tag_private_app_app01": [
"172..."
],
"tag_private_app_app01_app02_app03_app04_app05_____app06": [
"172..."
],
"tag_private_app_app02": [
"172..."
],
"tag_private_app_app03": [
"172..."
],

The idea is to be able to have more fine grained groups like:

  • private:app = "list of apps/services the host is running like dns web db cache"
  • private:env = "production/staging/testing"

And be able to combine it like:
ansible-playbook --limit 'tag_private_app_cache:&tag_private_env_staging'

Add the option to create subgroups based on splitting the value of the
key tags by whitespace.
@jnerin jnerin changed the title Add key split to subtags Add key split to subtags in ec2.py autodiscover script Oct 6, 2015
@jnerin
Copy link
Contributor Author

jnerin commented Apr 25, 2016

A very similar feature was merged few days later at e6a9b2c

@jnerin jnerin closed this Apr 25, 2016
@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_pull_request labels Mar 4, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature This issue/PR relates to a feature request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants