From d37612eb636a26f8b90b1ec73c39f0bd1be4af79 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Mon, 28 Nov 2016 12:07:42 -0600 Subject: [PATCH] Fixes #25: Make it easier to override configuration/vars. --- README.md | 8 +++++++- vars/main.yml => default.config.yml | 0 main.yml | 7 ++++++- 3 files changed, 13 insertions(+), 2 deletions(-) rename vars/main.yml => default.config.yml (100%) diff --git a/README.md b/README.md index 8807794..9d976bf 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,13 @@ This is a work in progress, and is mostly a means for me to document my current > Note: If some Homebrew commands fail, you might need to agree to XCode's license or fix some other Brew issue. Run `brew doctor` to see if this is the case. -## Included Applications / Configuration +## Overriding Defaults + +Not everyone's development environment and preferred software configuration is the same. + +You can override any of the defaults configured in `default.config.yml` by creating a `config.yml` file and setting the overrides in that file (e.g. create a customized list of `homebrew_installed_packages`). + +## Included Applications / Configuration (Default) Applications (installed with Homebrew Cask): diff --git a/vars/main.yml b/default.config.yml similarity index 100% rename from vars/main.yml rename to default.config.yml diff --git a/main.yml b/main.yml index cbc337e..e8517b5 100644 --- a/main.yml +++ b/main.yml @@ -3,7 +3,12 @@ connection: local vars_files: - - vars/main.yml + - default.config.yml + + pre_tasks: + - include_vars: "{{ item }}" + with_fileglob: + - config.yml roles: - geerlingguy.homebrew