# loading roles, etc. from internal url?

**URL:** <https://forum.ansible.com/t/loading-roles-etc-from-internal-url/34909>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [April 2, 2021, 6:23pm UTC](https://forum.ansible.com/t/loading-roles-etc-from-internal-url/34909 "2021-04-02T18:23:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_Brown](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@Philip\_Brown](https://forum.ansible.com/u/Philip_Brown)\
**Post date:** [April 2, 2021, 6:23pm UTC](https://forum.ansible.com/t/loading-roles-etc-from-internal-url/34909/1 "2021-04-02T18:23:34Z")

</div>

Hello,  
some what new to ansible. I’ve read a little about “galaxy”, but want to pull in private code from in-house server only.

Basically, I’d like a one-stop-shopping bootstrap playbook, “setup.yml”, that can pull in other code as needed.

I already have a single-file playbook version of that sort of thing in production, but I’d like the ability to easily have it use multiple code files, depending on what site it is running on, and things like that.

(in an ideal world, I would simply be able to use “import\_playbook” with a url instead of just a local file)

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [April 2, 2021, 9:34pm UTC](https://forum.ansible.com/t/loading-roles-etc-from-internal-url/34909/2 "2021-04-02T21:34:11Z")

</div>

This is not possible in an ansible-only way.  
We use a shell wrapper that has one playbook that fetches a number of roles, which are then used by the next playbook.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [April 5, 2021, 2:41pm UTC](https://forum.ansible.com/t/loading-roles-etc-from-internal-url/34909/3 "2021-04-05T14:41:48Z")

</div>

I have something with a playbook that runs a git actions to download  
the requisites and then reruns itself with tags to execute the parts  
that require the prereqs (those are all tagged ( ready, never) to  
prevent execution on normal/first call.
