title: ansible playbook of playbooks with variables
body: <p>I'm not even sure if this is possible.. </p>
  
  <p>I know you can have a playbook that calls other playbooks.. </p>
  
  <p>IE: </p>
  
  <pre><code>---
  # MasterPlaybook.yml
  
  - include: playbook1.yml
    when: some_var == "true"
  
  - include: playbook2.yml
    when: someother_var == "true"
  </code></pre>
  
  <p>and this will work if I call MasterPlaybook.yml and pass in the Vars.. </p>
  
  <p>BUT I want to include the vars from some other yml
  for example here is myvars.yml</p>
  
  <pre><code>  some_var: "true"
    someother_var: "false"
    Other_var: "Foo"
  </code></pre>
  
  <p>So if I want this included in a playbook1.yml I simply add.. </p>
  
  <pre><code>---
  - name: Script Play use variables to get and push out the code
    hosts: somegroup
    remote_user: "some user"
    vars:
      url: 'The url of the build'
      buildNumber: 'the build number'
      jobName: 'passed in job name'
    vars_files:
      - ~/myvars.yml
    serial: 1
  </code></pre>
  
  <p>and it will pull in the vars.. </p>
  
  <p>My question is how do I do this in the masterplaybook.yml so that I don't have to pass in the vars?</p>
  
  <p>and while we are at it.. are there any good examples of a master playbook?  (or a playbook of playbooks)</p>