Add hack to allow host vars to actually be defined by host

This commit is contained in:
Jake Howard 2021-03-10 11:07:13 +00:00
parent 26e084fc77
commit 702db22e4c
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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