--- # Test correct variable expansion in included files and only if - hosts: all vars: favcolor: "blue" guard: ' "$favcolor" == "blue" ' vars_files: - common_vars.yml tasks: - include: playbook_included.yml # test overrides of variables - include: playbook_included.yml favcolor=red