{"id":18469030,"url":"https://github.com/sansible/gocd_agent","last_synced_at":"2025-04-08T10:32:34.885Z","repository":{"id":46815209,"uuid":"51328420","full_name":"sansible/gocd_agent","owner":"sansible","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-24T23:24:51.000Z","size":87,"stargazers_count":2,"open_issues_count":2,"forks_count":5,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2025-03-23T11:04:33.838Z","etag":null,"topics":["ansible","ansible-role","ansible-roles","continuous-delivery","continuous-deployment","gocd"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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:27:51.000Z","updated_at":"2021-01-11T18:43:39.000Z","dependencies_parsed_at":"2023-02-14T02:31:25.070Z","dependency_job_id":null,"html_url":"https://github.com/sansible/gocd_agent","commit_stats":null,"previous_names":[],"tags_count":54,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sansible%2Fgocd_agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sansible%2Fgocd_agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sansible%2Fgocd_agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sansible%2Fgocd_agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sansible","download_url":"https://codeload.github.com/sansible/gocd_agent/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247824169,"owners_count":21002222,"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:08:46.703Z","updated_at":"2025-04-08T10:32:33.431Z","avatar_url":"https://github.com/sansible.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoCD Agent\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_agent.svg?branch=master)](https://travis-ci.org/sansible/gocd_agent)  \nDevelop: [![Build Status](https://travis-ci.org/sansible/gocd_agent.svg?branch=develop)](https://travis-ci.org/sansible/gocd_agent)\n\n* [Installation and Dependencies](#installation-and-dependencies)\n* [Tags](#tags)\n* [Examples](#examples)\n\nThis roles installs GoCD Agent, for GoCD Server installation please\nsee the [Sansible GoCD Server Role](https://github.com/sansible/gocd_server).\nMultiple agents are installed by default (see ```sansible_gocd_agent_no_of_agents```\nin defaults.yml).\n\nFor more information about GoCD 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_agent`\nor add this to your `roles.yml`\n\n```YAML\n- name: sansible.gocd_agent\n  version: v5.0\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 GoCD agent and all it's dependencies.\n* `configure` - Configure and ensures that the agents are running.\n\n\n## Examples\n\nTo simply install GoCD agent and specify number of agents\n(the default is 2):\n\n```YAML\n- name: Install GoCD Agent\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_agent\n      sansible_gocd_agent_no_of_agents: 4\n      sansible_gocd_agent_server_url: https://go-server:8154/go\n```\n\nBuild GoCD agent with AWS profile configured\n\n```YAML\n- name: Install GoCD Agent\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_agent\n      sansible_gocd_agent_aws_gocd_server_lookup_filters:\n        \"tag:environment\": prd\n        \"tag:role\": gocd_server\n        vpc-id: vpc-123456\n      sansible_gocd_agent_aws_profiles:\n        - name: production_access\n          config:\n            role_arn: \"arn:aws:iam::123456654321:role/ReleaseBot\"\n            source_profile: default\n            s3:\n              max_queue_size: 1000\n```\n\nThis will create the following `~/.aws/credentials`.\n\n```\n[production_access]\ns3 =\n  max_queue_size = 1000\nrole_arn = arn:aws:iam::123456654321:role/ReleaseBot\nsource_profile = default\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsansible%2Fgocd_agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsansible%2Fgocd_agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsansible%2Fgocd_agent/lists"}