{"id":19157962,"url":"https://github.com/ompragash/deploy-delegate-via-ansible","last_synced_at":"2026-04-11T20:32:03.442Z","repository":{"id":106829144,"uuid":"551818198","full_name":"Ompragash/deploy-delegate-via-ansible","owner":"Ompragash","description":"Up and Running Harness Delegate via Ansible in less than a minute🚀","archived":false,"fork":false,"pushed_at":"2022-10-22T17:57:57.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-06T17:21:16.028Z","etag":null,"topics":["ansible","automation","harness","harness-delegate"],"latest_commit_sha":null,"homepage":"","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/Ompragash.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-15T06:39:51.000Z","updated_at":"2022-10-22T17:51:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"43578a8c-23b2-4038-83cc-146b1c9fac3a","html_url":"https://github.com/Ompragash/deploy-delegate-via-ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ompragash/deploy-delegate-via-ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ompragash%2Fdeploy-delegate-via-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ompragash%2Fdeploy-delegate-via-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ompragash%2Fdeploy-delegate-via-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ompragash%2Fdeploy-delegate-via-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ompragash","download_url":"https://codeload.github.com/Ompragash/deploy-delegate-via-ansible/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ompragash%2Fdeploy-delegate-via-ansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31695158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T20:18:30.949Z","status":"ssl_error","status_checked_at":"2026-04-11T20:18:29.982Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","automation","harness","harness-delegate"],"created_at":"2024-11-09T08:42:33.129Z","updated_at":"2026-04-11T20:32:03.424Z","avatar_url":"https://github.com/Ompragash.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![ansible-harness](https://user-images.githubusercontent.com/21008429/196006970-aa007493-cb3c-449d-a9e0-e908fd7e0936.svg)\n# Up and Running Harness Delegate via Ansible in less than a Minute🚀\nThis repository contains Ansible playbooks that'll create Delegate Token and download the Delegate K8S Manifest file by making API calls to Harness NG REST API. You can also use the existing Delegate Token to download the manifest file.\n\n## Requirements\n- ansible-core \u003e= 2.12.0\n- kubernetes \u003e= 12.0.0\n- jsonpatch\n```bash\npip3 install --user ansible-core kubernetes jsonpatch\n```\n\n- `kubernetes.core` Collection\n```bash\nansible-galaxy collection install kubernetes.core\n```\n\n- Create Harness API Key and PAT (Click [here](https://docs.harness.io/article/f0aqiv3td7-api-quickstart#step_1_create_a_harness_api_key_and_pat) for details)\n\n## Dependencies\n- Python 3.9.0 or higher\n- Git\n\n## Repo Structure\n- tasks/\n    - create_delegate_token.yml - Creates Delegate Token\n    - download_delegate_k8s.yml - Downloads Delegate K8S Manifest file\n    - deploy_delegate_on_k8s.yml - Deploys Delegate to K8S infra\n- vars/\n    - config.yml - Required variables to authenticate and interact with the Harness NG API endpoint\n\n## Usage\n1. Clone this repo:\n```bash\ngit clone https://github.com/Ompragash/deploy-delegate-via-ansible.git\ncd deploy-delegate-via-ansible\n```\n\n2. Use your favorite editor to open [vars/config.yml](vars/config.yml) and add Harness API PAT, Account Id, Org ID, Project ID, Delegate Token Name \u0026 Delegate Name values to respective variables.\n\n3. Time for ***AUTOMATION!!⚡️***. Just run the below command:\n```bash\nansible-playbook main.yml\n```\n\nThe output of successful playbook run:\n```\nPLAY RECAP **************************************************************************\nlocalhost                  : ok=7    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0\n```\n\n4. Yayy! _Harness Delegate K8S Manifest_ file is downloaded and available in `manifests/harness-delegate.yml`.\n\n### Additional Details\nThe playbooks in this repo are designed dynamically so if you don't want to create a new Delegate Token and use the existing one, then all you need is to get the delegate token id from Harness NG UI, add it to `token_name:` variable in [vars/config.yml](vars/config.yml) and run the below command:\n```bash\nansible-playbook main.yml --skip-tags delegate_token\n```\n\n## License\n\nMIT License. See [COPYING](LICENSE) for more details.\n\n## Author Information\nThis playbook was created in 2022 by [Ompragash](https://www.linkedin.com/in/ompragash/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fompragash%2Fdeploy-delegate-via-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fompragash%2Fdeploy-delegate-via-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fompragash%2Fdeploy-delegate-via-ansible/lists"}