Components with external dependencies

I want to put together a deployment component that has associated Ansible playbooks and inventories that uses to accomplish the deploymen. Is there any way to do this with the CI CD Components?

I tried the following folder structures:

|- templates
   |- deploy-swarm
       |- template.yml
       |- playbooks
       |- inventories
       |- etc
|- templates
    |- deploy-swarm.yml
|- inventories
|- playbooks

None of the arrangemens can find it in any way. Maybe I misunderstood the documentation and need to check out the project?

Checkout this post I think it’s asking the same thing: Can Gitlab CI/CD Componentes include non-yml resources? - #2 by leetickett-gitlab

1 Like

@leetickett-gitlab It looked initially that steps would work for us, but our use case seems to be a little bit more complex than steps support. We have to be able to run our template / component on a specific docker image, and when you need to use the step runner docker image it’s just not going to have everything. I did look at GitLab components / Value Stream Dashboard reports generator · GitLab, and the approach they’re taking. Cloning another project from GitLab during the build is a little janky but could would work for our use case. Not ideal, but it may work.