{"id":18367829,"url":"https://github.com/gantsign/ansible_role_hub","last_synced_at":"2026-02-16T13:02:22.948Z","repository":{"id":39652371,"uuid":"144564452","full_name":"gantsign/ansible_role_hub","owner":"gantsign","description":"Ansible role for installing the Hub command line tool for GitHub","archived":false,"fork":false,"pushed_at":"2022-12-03T19:49:28.000Z","size":97,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T17:37:34.188Z","etag":null,"topics":["ansible","ansible-role","git","github"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/gantsign/hub","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/gantsign.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":"2018-08-13T10:27:42.000Z","updated_at":"2023-01-20T11:29:59.000Z","dependencies_parsed_at":"2023-01-22T17:10:14.024Z","dependency_job_id":null,"html_url":"https://github.com/gantsign/ansible_role_hub","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/gantsign/ansible_role_hub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gantsign%2Fansible_role_hub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gantsign%2Fansible_role_hub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gantsign%2Fansible_role_hub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gantsign%2Fansible_role_hub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gantsign","download_url":"https://codeload.github.com/gantsign/ansible_role_hub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gantsign%2Fansible_role_hub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29508737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"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","ansible-role","git","github"],"created_at":"2024-11-05T23:23:37.983Z","updated_at":"2026-02-16T13:02:22.931Z","avatar_url":"https://github.com/gantsign.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Role: Hub\n=================\n\n[![Tests](https://github.com/gantsign/ansible_role_hub/workflows/Tests/badge.svg)](https://github.com/gantsign/ansible_role_hub/actions?query=workflow%3ATests)\n[![Ansible Galaxy](https://img.shields.io/badge/ansible--galaxy-gantsign.hub-blue.svg)](https://galaxy.ansible.com/gantsign/hub)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/gantsign/ansible_role_hub/master/LICENSE)\n\nRole to download and install GitHubs's [Hub](https://hub.github.com/) the\ncommand-line wrapper for Git that adds features for GitHub repositories.\n\nRequirements\n------------\n\n* Ansible \u003e= 2.9\n\n* Linux Distribution\n\n    * Debian Family\n\n        * Debian\n\n            * Stretch (9)\n            * Buster (10)\n            * Bullseye (11)\n\n        * Ubuntu\n\n            * Bionic (18.04)\n            * Focal (20.04)\n\n    * RedHat Family\n\n        * Rocky Linux\n\n            * 8\n\n        * Fedora\n\n            * 35\n\n    * SUSE Family\n\n        * openSUSE\n\n            * 15.3\n\n    * Note: other versions are likely to work but have not been tested.\n\nRole Variables\n--------------\n\nThe following variables will change the behavior of this role:\n\n```yaml\n# Hub version number\nhub_version: '2.14.2'\n\n# The SHA256 of the Hub redistributable package\nhub_redis_sha256sum: '74d95fdfb3c78c8af4e2025b04b916ad905ab99a361778500d58269847c7922d'\n\n# Directory to store files downloaded for Hub\nhub_download_dir: \"{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}\"\n```\n\nExample Playbook\n----------------\n\n```yaml\n- hosts: servers\n  roles:\n    - role: gantsign.hub\n```\n\nTab Completion \u0026 Git Alias for Zsh\n------------------------------------\n\n### Using Ansible\n\nThe recommended way to enable Zsh support for Hub is to use the\n[gantsign.antigen](https://galaxy.ansible.com/gantsign/antigen) role (this must\nbe configured for each user).\n\n\n```yaml\n- hosts: servers\n  roles:\n    - role: gantsign.hub\n\n    - role: gantsign.antigen\n      users:\n        - username: example\n          antigen_bundles:\n            - name: hub\n              url: '/usr/local/share/hub/zsh'\n```\n\n### Using Antigen\n\nIf you prefer to use [Antigen](https://github.com/zsh-users/antigen) directly\nadd the following to your Antigen configuration:\n\n```bash\nantigen bundle /usr/local/share/hub/zsh\n```\n\n### Manual configuration\n\nTo manually configure Zsh add the following to your `.zshrc`:\n\n```bash\n# Configure Hub alias for Git\nsource /usr/local/share/hub/zsh/hub.plugin.zsh\n\n# Configure tab completion for Hub\nfpath=(/usr/local/share/hub/zsh $fpath)\nautoload -U compinit \u0026\u0026 compinit\n```\n\nTab Completion \u0026 Git Alias for Other Shells\n---------------------------------------------\n\nDownload tab completion support for your shell from\n[here](https://github.com/github/hub/tree/master/etc); follow the\ninstructions for configuring tab completion\n[here](https://github.com/github/hub/blob/master/etc/README.md#installation-instructions).\n\nFollow these instructions for setting up the alias\n[here](https://github.com/github/hub#aliasing).\n\n\nMore Roles From GantSign\n------------------------\n\nYou can find more roles from GantSign on\n[Ansible Galaxy](https://galaxy.ansible.com/gantsign).\n\nDevelopment \u0026 Testing\n---------------------\n\nThis project uses [Molecule](http://molecule.readthedocs.io/) to aid in the\ndevelopment and testing; the role is unit tested using\n[Testinfra](http://testinfra.readthedocs.io/) and\n[pytest](http://docs.pytest.org/).\n\nTo develop or test you'll need to have installed the following:\n\n* Linux (e.g. [Ubuntu](http://www.ubuntu.com/))\n* [Docker](https://www.docker.com/)\n* [Python](https://www.python.org/) (including python-pip)\n* [Ansible](https://www.ansible.com/)\n* [Molecule](http://molecule.readthedocs.io/)\n\nBecause the above can be tricky to install, this project includes\n[Molecule Wrapper](https://github.com/gantsign/molecule-wrapper). Molecule\nWrapper is a shell script that installs Molecule and it's dependencies (apart\nfrom Linux) and then executes Molecule with the command you pass it.\n\nTo test this role using Molecule Wrapper run the following command from the\nproject root:\n\n```bash\n./moleculew test\n```\n\nNote: some of the dependencies need `sudo` permission to install.\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\n\nJohn Freeman\n\nGantSign Ltd.\nCompany No. 06109112 (registered in England)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgantsign%2Fansible_role_hub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgantsign%2Fansible_role_hub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgantsign%2Fansible_role_hub/lists"}