I have a master playlist, global.yml, in which I specified hosts, become, and includes for different OSes That worked fine until I went to add handlers. In my included playbooks, I did something like:
-
handlers
-
name: handler 1
etc etc -
tasks:
-
name: Task 1
etc etc
At that point, I’m getting complaints about “ERROR! the field ‘hosts’ is required but was not set” Moving hosts statements to the included playbooks hasn’t helped. I’m certain I’ve gotten lost in dashes and no dashes and indentation. Or am i just going about this the wrong way?