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
base: devel
from

Conversation

Projects
None yet
3 participants
@jnerin
Contributor

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 key split to subtags
Add the option to create subgroups based on splitting the value of the
key tags by whitespace.

@jnerin jnerin changed the title from Add key split to subtags to Add key split to subtags in ec2.py autodiscover script Oct 6, 2015

@jnerin

This comment has been minimized.

Contributor

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 and removed feature_pull_request labels Mar 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment