Skip to content

Instantly share code, notes, and snippets.

@bkimble
Created January 5, 2015 23:56
Show Gist options
  • Save bkimble/a5a543bbab7fc90cbd16 to your computer and use it in GitHub Desktop.
Save bkimble/a5a543bbab7fc90cbd16 to your computer and use it in GitHub Desktop.
---
- hosts: localhost
vars_files:
# Todo: Find a way of putting this in another file and including it. Otherwise we'll be repeating it all over the place.
- ["inventory/group_vars/{{ env_name | mandatory }}.yml", "inventory/group_vars/empty.yml"]
- ["inventory/group_vars/{{ env_name | mandatory }}-{{ app_name }}.yml", "inventory/group_vars/empty.yml"]
- ["inventory/group_vars/{{ env_name | mandatory }}-{{ app_name }}-{{ role_name }}.yml", "inventory/group_vars/empty.yml"]
pre_tasks:
- debug: var=num_servers_to_provision
roles:
- {role: provision}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment