Skip to content

Instantly share code, notes, and snippets.

@tgerla
Created June 24, 2015 20:22
Show Gist options
  • Save tgerla/a88ea3970341b341749d to your computer and use it in GitHub Desktop.
Save tgerla/a88ea3970341b341749d to your computer and use it in GitHub Desktop.
- 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