Skip to content

Instantly share code, notes, and snippets.

@bkimble
Created January 6, 2015 00:00
Show Gist options
  • Save bkimble/0bdb2a2fb906c5efe2c0 to your computer and use it in GitHub Desktop.
Save bkimble/0bdb2a2fb906c5efe2c0 to your computer and use it in GitHub Desktop.
---
- hosts: localhost
include: myvars.yml
pre_tasks:
- debug: var=num_servers_to_provision
roles:
- {role: provision}
- 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"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment