Skip to content

Instantly share code, notes, and snippets.

@bkimble
Created January 5, 2015 23:56
Show Gist options
  • Save bkimble/5a2c89f6ae7fa1591403 to your computer and use it in GitHub Desktop.
Save bkimble/5a2c89f6ae7fa1591403 to your computer and use it in GitHub Desktop.

Revisions

  1. bkimble created this gist Jan 5, 2015.
    11 changes: 11 additions & 0 deletions gistfile1.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ---
    - 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}