Hi all,
thanks for your replies, based on those I investigated this more and found out that it is in fact the "{{ comman }}" variable reference in the included file that caused this problem.
I was under the impression that the variable defs in the included files could reference other vars in them but this is not the case.
They all have to be defined elsewhere and the after they have been included can be referenced and used in the playbooks.
There were also some syntax errrors in my playbooks and the variable "common" had been defined in the other host group/role files but not for the other. That's why after correcting the include vars stanza the other host still reported the whole include vars to caseu "undefined error"
Also, this was very difficult to debug cause even the -vvvv verbosity clauses in the playbook run did not reveal which part in the included vars file has the undefined var or syntax error or anything. It only passed thru these tasks but the variables (all an/or for one host) remained undefined.
Once again, thanks for your comments, they were very helpful for me to sort this out, now my playbook works as excpected and I'm just testing what is the best way to include sevaral files (actually individual LXC-definitions) to be added as a list or hash to a collection var e.g. lxchosts.lxc1 or lxchosts['lxc1'].. presumably like:
- name: Load LXCs
include_vars: "lxc-{{ item }}.yaml" name="lxchosts.{{ item }}"
with_items:lxcnames
Cheers for now,