Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

How do you use this? #35

Open
jagregory opened this issue Dec 7, 2015 · 4 comments
Open

How do you use this? #35

jagregory opened this issue Dec 7, 2015 · 4 comments

Comments

@jagregory
Copy link

I know it's probably a stupid question... but when I ansible-galaxy install this I get a copy of master which is a playbook/multi-role package. No matter what I specify in my site.yml ansible will not use the roles of this package.

Help?

@sw00
Copy link
Contributor

sw00 commented Dec 7, 2015

It took me some time to figure it out as well. It is indeed a multi-role repo so you can use the regular convention, with an added twist:

- hosts: gocd
  vars:
    GOCD_ADMIN_EMAIL: [email protected]
    GOCD_SCM_GIT: true
    GOCD_DEBIAN_REPOSITORY: http://dl.bintray.com/gocd/gocd-deb/
    DOCKER_USER: go

roles:
  - tpbrown.gocd/roles/common
  - tpbrown.gocd/roles/agent
  - tpbrown.gocd/roles/server

@ketan
Copy link
Member

ketan commented Dec 7, 2015

Would you like to submit a PR to update the README?

@MFAnderson
Copy link
Collaborator

I've gone ahead and updated the README to reflect the new way to include roles as illustrated by @sw00. @jagregory, can you let me know if this resolves your issue?

@jagregory
Copy link
Author

Ah brilliant, thanks @sw00. I've never seen the tpbrown.gocd/roles/common syntax before (amusingly I did try tpbrown.gocd/common without any success!).

I'll report back once I've been able to test this.

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

No branches or pull requests

4 participants