From 702db22e4c9a94f86a04498d185a39466d1b5c16 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 10 Mar 2021 11:07:13 +0000 Subject: [PATCH] Add hack to allow host vars to actually be defined by host --- dotfiles.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dotfiles.yml b/dotfiles.yml index 23b478d..d1e8710 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -7,6 +7,12 @@ include_vars: file: vars.yml + # HACK: So variables can be loaded by hostname, rather than `local` + - name: Load custom variables + include_vars: + file: host_vars/{{ ansible_hostname }}.yml + ignore_errors: true + - import_tasks: tasks/user.yml - import_tasks: tasks/packages.yml