Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External ansible repo #2

Open
Stuey2 opened this issue Jul 26, 2017 · 1 comment
Open

External ansible repo #2

Stuey2 opened this issue Jul 26, 2017 · 1 comment

Comments

@Stuey2
Copy link

Stuey2 commented Jul 26, 2017

Is there any way to reference and use an external ansible repo, which contains a variety of roles, playbooks, etc and obviously one or more inventory files?

Put the other way, must you maintain an inventory and playbook file in the project that you want to use drone-ansible from?

@thetooth
Copy link

thetooth commented Aug 8, 2017

Yes, see http://docs.drone.io/cloning/ , setting this will have just the .drone.yml file run from the repo that triggers the build while the working code base can be from anywhere. For more than one source, just add multiple command entries with their full git clone commands.

pipeline:
  clone:
    git:
      image: plugins/git
      command:
        - git clone foo
        - git clone bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants