Hi,
I have been checking the documentation and some of the list, for this answer.
My current layout if like this
svn/
CitrusLeaf/
CL200/
files/
tasks/
templates/
vars/
CL400/
files/
tasks/
templates/
vars/
StreamingCluster/
SC200/
files/
tasks/
templates/
vars/
SC400/
files/
tasks/
templates/
vars/
WebServers/
WS200/
files/
tasks/
templates/
vars/
WS400/
files/
tasks/
templates/
vars/
global/
files/
tasks/
templates/
vars/
global_vars.yml
hosts
Is my understanding correct?, that if I’m running a play from CitrusLeaf/CL200/tasks that I cannot call a playbook in global/tasks?
I want to keep all my user, and standard config tasks like SSH banners in the global tasks directory because those things should be consistent on all machines.
I’m not clear what is required to make this work, or if I need to use variables to deal with this issue? Do I have to use “hosts:, user:,” etc to get the NTP.yml to work?
Thanks,
James
sheepchase:tasks jmarcus$ ansible-playbook Testing.yml -k
SSH password:
ERROR: parse error: playbooks must be formatted as a YAML list
sheepchase:tasks jmarcus$ head Testing.yml