Getting lost in nesting

22 views
Skip to first unread message

John Oliver

unread,
Dec 12, 2016, 4:16:17 PM12/12/16
to Ansible Project
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?

John Oliver

unread,
Dec 12, 2016, 5:40:27 PM12/12/16
to Ansible Project
N/M, after re-reading sections on syntax and playbooks, I got it all ironed out :-)
Reply all
Reply to author
Forward
0 new messages