Created
March 13, 2014 15:30
-
-
Save phips/9530621 to your computer and use it in GitHub Desktop.
Ansible dynamic grouping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
tasks: | |
- group_by: key={{ ansible_virtualization_type }} | |
# Include *all* groups here | |
- include: webservers.yml | |
## | |
- hosts: VMware | |
sudo: true | |
roles: | |
- yumrepos | |
- vmware |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment