Calling vars['var'] is an explicit reference to the a play's vars key which makes defining those variables at host level impossible.
Also, when defining a variable in vars by providing a host variable the variable expansion breaks.
vars -> key: "{{ host_variable_foo }}" will be returned as a literal string when looked up via vars['key'] without any expansion.
This commit fixes #291 by refering to just the variable name wherever suitable.
Calling
vars['var']
is an explicit reference to the a play'svars
key which makes defining those variables at host level impossible.Also, when defining a variable in
vars
by providing a host variable the variable expansion breaks.vars
->key: "{{ host_variable_foo }}"
will be returned as a literal string when looked up viavars['key']
without any expansion.This commit fixes #291 by refering to just the variable name wherever suitable.