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

Get rid of ansible_play_hosts #1

Open
rlex opened this issue Aug 23, 2017 · 0 comments
Open

Get rid of ansible_play_hosts #1

rlex opened this issue Aug 23, 2017 · 0 comments

Comments

@rlex
Copy link
Owner

rlex commented Aug 23, 2017

As in idea from IRC:

halberom: i would use a role var, that you assign to an inventory group.  e.g. myrole_group: somegroup.  and then you can do   if inventory_hostname in groups[myrole_group].. decouples your role from your inventory (assuming you're aiming for a generic role)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant