Created
June 24, 2015 20:22
-
-
Save tgerla/a88ea3970341b341749d to your computer and use it in GitHub Desktop.
This file contains hidden or 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: | |
- name: create a temporary inventory group | |
group_by: key=os_{{ansible_os_family}} | |
- hosts: os_Windows | |
tasks: | |
# these tasks only apply to Windows | |
- hosts: all:!os_Windows | |
tasks: | |
# these tasks apply to everything else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment