gocd-contrib / ansible-gocd

Ansible playbook to install ThoughtWorks open-source continuous delivery tool, Go. Also available on Ansible Galaxy https://galaxy.ansible.com/list#/roles/1690
http://www.go.cd/
MIT License
70 stars 57 forks source link

How do you use this? #35

Open jagregory opened 8 years ago

jagregory commented 8 years ago

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 commented 8 years ago

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: admin@mydomain.com
    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 commented 8 years ago

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

MFAnderson commented 8 years ago

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 commented 8 years ago

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.