I have a custom dynamic inventory whose source data is basically a custom flat-file database that consists of a hostname and a bunch of key=value pairs. In the dynamic inventory, I'm using those key=value pairs as hostvars. I currently do not have any defined groups.
What I would like to do is create groups on the fly using the hostvars. e.g. If I want to run a playbook against all of the hosts in the dynamic inventory with key=value pair of production=false, then run that same playbook against all those with production=true, then run it against production=true *and *platform=linux, etc. I don't think I should have to create a separate playbook for all of those, maybe I do. I would think there is a way to do that via command-line arguments or somesuch. I just can't find any straightforward documentation concerning that. Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/271e6db1-1b89-416c-943e-4fdd8ac68ee3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
