No description
Find a file
semantic-release-bot 2cdba35c44 chore(release): 1.9.0 [skip ci]
# [1.9.0](https://github.com/de-it-krachten/ansible-role-github_cli/compare/v1.8.0...v1.9.0) (2026-05-18)

### Features

* Added support for Fedora 44 ([be96ee6](be96ee6124))
* Added support for Ubuntu 20.04 LTS ([e197ed1](e197ed10fd))
* Added support for Ubuntu 26.04 LTS ([761a0f4](761a0f40af))
* Drop support for Fedora 42 ([9aa32f5](9aa32f56f5))
2026-05-18 10:21:54 +00:00
.github/workflows Update CI 2026-05-18 12:07:36 +02:00
defaults Update CI 2026-03-31 14:41:21 +02:00
meta Update CI 2026-05-18 12:07:36 +02:00
molecule/default Update CI 2026-05-18 12:07:36 +02:00
tasks Update CI 2026-03-31 14:41:21 +02:00
vars feat: Move to FQCN 2022-10-08 13:08:14 +02:00
.ansible-lint Update CI 2026-03-31 14:41:21 +02:00
.cicd Update CI 2026-05-18 12:07:36 +02:00
.cicd.overwrite Update CI 2026-03-31 14:41:21 +02:00
.collections feat: Add support for Ubuntu 24.04 LTS + Fedora 40 2024-05-31 23:13:17 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 02:06:10 +01:00
.releaserc.yml Update CI 2026-03-06 22:37:37 +01:00
.roles feat: Update CI to latest standards 2022-10-08 13:23:50 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 02:06:10 +01:00
CHANGELOG.md chore(release): 1.9.0 [skip ci] 2026-05-18 10:21:54 +00:00
README.md Update CI 2026-05-18 12:07:36 +02:00

CI

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 20.04 LTS
  • Ubuntu 22.04 LTS
  • Ubuntu 24.04 LTS
  • Ubuntu 26.04 LTS
  • Fedora 43
  • Fedora 441

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'

# package dependencies
github_package_dependencies:
  - rsync
  - gzip
  - tar

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