Include ansible-galaxy playbooks from another playbook

Hi all
I’m using an ansible-galaxy playbook. Right now I’m having it included using my site.yml file:

roles:

  • nodesource.node
  • base-ami

Now try to use an include statement in my role playbook but it raises an error since the playbook is an external one and not part of my playbook. Any way around that, like telling my playbook this is an ansible-galaxy playbook so don’t expect to see it in the directory structure?

  • name: Include the nodesource.node playbook
    include: nodesource.node

“Now try to use an include statement in my role playbook”

I’m having a bit of difficulty following.

Galaxy is only a mechanism of downloading roles, not playbooks, so I’m currently understanding this to mean you seem to be requesting that roles that are not found are not an error?

Can you perhaps clarify?

Thanks!

Bad choice of wording. So I like what a role in galaxy does so I download. Now I want to override some of those role’s defaults. In the case of this rbenv role (which is also available in galaxy), the version of Ruby it installs. If I include the role using my site.file it just installs that role with its default values.

  • hosts: all
    user: ubuntu
    sudo: true

roles:

  • base-ami
  • nodesource.node
  • rbenv
  • rails

What’s the right way of doing that?

OK. Just ignore this thread. I think I had an epiphany and figured what it is that I’m looking for. I’ll open another thread for it.