Files
Brian CocaandGitHub 91319c5cfc Avoid accessing delegated vars when you dont have a host (#75524)
* avoid getting delegated vars w/o inventory host

 fixes #75512

 In the case of imports, we don't have a host, so getting host vars for
 the delegated host makes no sense and should be avoided.

* also avoid error on vars_files with per host vars

* test

* testing given case

* oops
2021-08-20 05:10:00 +10:00

8 lines
124 B
YAML

- name: "main"
hosts: all
gather_facts: false
tasks:
- import_role:
name: some_role
delegate_to: testhost