mirror of
https://github.com/de-it-krachten/ansible-role-github_cli
synced 2026-05-14 03:31:58 +00:00
No description
- Jinja 100%
|
|
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| vars | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
ansible-role-github_cli
Installs the github cli on Linux systems
Dependencies
Roles
None
Collections
- ansible.posix
Platforms
Supported platforms
- Red Hat Enterprise Linux 81
- Red Hat Enterprise Linux 91
- Red Hat Enterprise Linux 101
- RockyLinux 8
- RockyLinux 9
- RockyLinux 10
- OracleLinux 8
- OracleLinux 9
- OracleLinux 10
- AlmaLinux 8
- AlmaLinux 9
- AlmaLinux 10
- Debian 11 (Bullseye)
- Debian 12 (Bookworm)
- Debian 13 (Trixie)
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
- Fedora 42
- Fedora 43
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# Github CLI - API
github_cli_api: https://api.github.com/repos/cli/cli
# Github CLI - repo
github_cli_repo: https://github.com/cli/cli
# Lookup table for architecture
github_cli:
architecture:
x86: 386
x86_64: amd64
system:
Linux: linux
Darwin: MacOS
windows: windows
# Should the cli be downloaded
github_cli_download: true
# Version of the CLI to install
github_cli_version: latest
# Location/ownership/permissions of the binary
github_cli_path: /usr/bin/gh
github_cli_owner: root
github_cli_group: root
github_cli_mode: '0755'
vars/main.yml
github_cli:
architecture:
x86: 386
x86_64: amd64
system:
Linux: linux
Darwin: MacOS
windows: windows
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'github_cli'
hosts: all
become: 'yes'
tasks:
- name: Include role 'github_cli'
ansible.builtin.include_role:
name: github_cli