Add hack to allow host vars to actually be defined by host
This commit is contained in:
parent
26e084fc77
commit
702db22e4c
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,12 @@
|
||||||
include_vars:
|
include_vars:
|
||||||
file: vars.yml
|
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/user.yml
|
||||||
- import_tasks: tasks/packages.yml
|
- import_tasks: tasks/packages.yml
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue