Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iancleary/ansible-role-gh
Ansible role to install the Github CLI
https://github.com/iancleary/ansible-role-gh
ansible ansible-roles gh github-cli
Last synced: 3 months ago
JSON representation
Ansible role to install the Github CLI
- Host: GitHub
- URL: https://github.com/iancleary/ansible-role-gh
- Owner: iancleary
- License: mit
- Archived: true
- Created: 2023-03-22T16:52:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-14T14:45:43.000Z (over 1 year ago)
- Last Synced: 2024-09-26T06:01:17.837Z (3 months ago)
- Topics: ansible, ansible-roles, gh, github-cli
- Homepage: https://galaxy.ansible.com/iancleary/gh
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
ARCHIVED
ansible-role-gh
=========> This repo is archived. I no longer plan to maintain it. You are welcome to do anything permitted by the [LICENSE](LICENSE).
>
> Why, see this article about [NixOS vs Ansible](https://discourse.nixos.org/t/nixos-vs-ansible/16757/17) for more detailsThis role installs the [GitHub CLI](https://github.com/cli/cli).
> gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code.
Requirements
------------This role has the `github3.py` pip dependency to get the latest release of the GitHub repo.
> `python3 -m pip install github3.py`
Supported and Tested `ansible_os_families`:
* Ubuntu 22.04
* elementary OS 7
* Fedora 36> Pull Requests welcome!
Role Variables
--------------A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
------------
Specify the release version to install from GitHub
```yaml
# gh_version: 1.6.1 # undefined is latest release
```------------
Specify the archicture you which to install on: i.e. `amd64`, `arm64`, `armv6`, or `386` at the time of this writing.
```yaml
gh_arch: "amd64" # used in remote package url
```
------------Dependencies
------------A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
`github3.py` python package
Example Playbook
----------------Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
```yaml
- hosts: servers
roles:
- role: iancleary.gh
```License
-------[MIT](LICENSE)
Author Information
------------------This role was created in 2021 by [Ian Cleary](https://iancleary.me).
Inspiration for the structure of this repo came from [Jeff Geerling](https://github.com/geerlingguy/ansible-role-nginx).