confusion using roles with playbooks inside /playbooks directory

I have the following folder structure as recommended by the examples

/group_vars
/host_vars
/playbooks
a.yml ← how does this call use roles
b.yml ← how does this call use roles
/roles
/common
/files
/handlers
/tasks
/templates
/vars
/mongodb

/files
/handlers
/tasks
/templates
/vars

/mysql

/files
/handlers
/tasks
/templates
/vars

production-inventory
webservers.yml <— includes playbook a.yml and b.yml

1.) I see that a.yml is looking for roles in /playbooks/roles, how can I assign it to look in /roles instead?

2.) This is a separate question,
Is it possible to assign the user of playbook a.yml with parameter/variables from webservers.yml?

I know you can pass “vars” with tasks, but I haven’t found an example with playbooks including playbooks.

Mike

(1)

IIRC:

roles:

  • { role: …/roles/foo }

(2)

In the playbook:

user: foo

?

Interesting, I had to go up two directories to get it to work.

roles:

  • { role: …/…/roles/foo }