{"id":18469117,"url":"https://github.com/sansible/gocd_server","last_synced_at":"2025-04-08T10:32:36.293Z","repository":{"id":46814323,"uuid":"51327062","full_name":"sansible/gocd_server","owner":"sansible","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-24T23:25:00.000Z","size":91,"stargazers_count":5,"open_issues_count":1,"forks_count":5,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2025-03-23T11:04:57.798Z","etag":null,"topics":["ansible","ansible-role","ansible-roles","continuous-delivery","continuous-deployment","gocd"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sansible.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-08T21:06:12.000Z","updated_at":"2021-02-08T12:19:58.000Z","dependencies_parsed_at":"2023-02-14T02:31:12.533Z","dependency_job_id":null,"html_url":"https://github.com/sansible/gocd_server","commit_stats":null,"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sansible%2Fgocd_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sansible%2Fgocd_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sansible%2Fgocd_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sansible%2Fgocd_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sansible","download_url":"https://codeload.github.com/sansible/gocd_server/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247824189,"owners_count":21002225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","ansible-roles","continuous-delivery","continuous-deployment","gocd"],"created_at":"2024-11-06T10:09:00.558Z","updated_at":"2025-04-08T10:32:34.990Z","avatar_url":"https://github.com/sansible.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GO CD Server\n\nPlease see the Sansible readme for information on how to\n[contribure](https://github.com/sansible/sansible)\n\nMaster: [![Build Status](https://travis-ci.org/sansible/gocd_server.svg?branch=master)](https://travis-ci.org/sansible/gocd_server)\nDevelop: [![Build Status](https://travis-ci.org/sansible/gocd_server.svg?branch=develop)](https://travis-ci.org/sansible/gocd_server)\n\n* [Installation and Dependencies](#installation-and-dependencies)\n* [Tags](#tags)\n* [Examples](#examples)\n\nThis roles installs GO CD server, for GO CD Agent installation please\nsee the [Sansible GO CD Agent Role](https://github.com/sansible/gocd_agent)\n\nFor more information about GO CD please visit\n[https://www.gocd.org/](https://www.gocd.org/).\n\n\n## Installation and Dependencies\n\nTo install this role run `ansible-galaxy install sansible.gocd_server`\nor add this to your `roles.yml`\n\n```YAML\n- name: sansible.gocd_server\n  version: v3.1\n```\n\nand run `ansible-galaxy install -p ./roles -r roles.yml`.\n\nThe `sansible.users_and_groups` role is required to use this\nrole.\n\n\n## Tags\n\nThis role uses two tags: **build** and **configure**\n\n* `build` - Installs Go CD server and all it's dependencies.\n* `configure` - Configure and ensures that the service is running.\n\n\n## Examples\n\nPlease see [defaults/main.yml](defaults/main.yml) and [vars/main.yml](vars/main.yml)\nfor available settings and defaults.\n\nTo simply install GO CD server:\n\n```YAML\n- name: Install GO CD Server\n  hosts: sandbox\n\n  pre_tasks:\n    - name: Update apt\n      become: yes\n      command: apt-get update\n      tags:\n        - build\n\n  roles:\n    - name: sansible.gocd_server\n```\n\nAdding some additional system properties/startup options and some plugins, you must\nstart from 105 for additional properties:\n\n```YAML\n- name: Install GO CD Server\n  hosts: sandbox\n\n  pre_tasks:\n    - name: Update apt\n      become: yes\n      command: apt-get update\n      tags:\n        - build\n\n  roles:\n    - role: sansible.gocd_server\n      sansible_gocd_server_plugins:\n        - \"https://github.com/ashwanthkumar/gocd-build-github-pull-requests/releases/download/v1.3.5/github-pr-poller-1.3.5.jar\"\n        - \"https://github.com/gocd-contrib/gocd-build-status-notifier/releases/download/1.6-73/github-pr-status-1.6-73.jar\"\n        - \"https://github.com/gocd-contrib/script-executor-task/releases/download/0.3/script-executor-0.3.0.jar\"\n      sansible_gocd_server_properties:\n        \"wrapper.java.additional.105\": \"-Dmail.smtp.starttls.enable=true\"\n        \"wrapper.java.additional.106\": \"-Dgo.plugin.build.status.go-server=http://gocd-server:8153\"\n```\n\nTo **generate passwd file** you have to specify a dictionary of\n`username: sha-passwd`\n\n```YAML\n- name: Install GO CD Server\n  hosts: sandbox\n\n  pre_tasks:\n    - name: Update apt\n      become: yes\n      command: apt-get update\n      tags:\n        - build\n\n  roles:\n    - name: sansible.gocd_server\n      sansible_gocd_server_passwd_users:\n        test.user: \"{SHA}iCKdyZxzuc4lU6CCoqsp4H99608=\"\n```\n\nTo enable AWS S3 Bucket backups/restore create s3 bucket first\n(s3://backup.gocd-server.my.domain).\n\nYou can also specify access and secret keys, and this role will\ncreate `~/.aws/credentials` for you. But we strongly advise to use\n\"IAM Instance Profiles\".\n\n```YAML\n- name: Install GO CD Server\n  hosts: sandbox\n\n  pre_tasks:\n    - name: Update apt\n      become: yes\n      apt:\n        cache_valid_time: 1800\n        update_cache: yes\n      tags:\n        - build\n\n  roles:\n    - name: sansible.gocd_server\n      sansible_gocd_server_aws_access_key_id: LOREMIPSUMDOLORKV4IQ\n      sansible_gocd_server_aws_backup_bucket: s3://backup.gocd-server.my.domain\n      sansible_gocd_server_aws_secret_access_key: sit+Ament+Hl8V2lQpaOkLRakvGMidrkWv6F9\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsansible%2Fgocd_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsansible%2Fgocd_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsansible%2Fgocd_server/lists"}