No description
Find a file
Mark van Huijstee 68f883c353
Merge pull request #22 from de-it-krachten/dev
Update supported platforms & CI (2026-03-14)
2026-03-15 12:37:18 +01:00
.github/workflows Update supported platforms & CI 2026-03-14 19:31:48 +01:00
defaults Implementation of Github actions 2021-12-20 18:35:38 +01:00
meta Update CI 2026-03-06 22:37:37 +01:00
molecule/default Update supported platforms & CI 2026-03-14 14:48:13 +01:00
tasks Fix CI 2025-08-06 19:50:20 +02:00
vars feat: Move to FQCN 2022-10-08 13:08:14 +02:00
.ansible-lint feat: Update CI to latest standards 2022-10-08 13:23:50 +02:00
.cicd Update CI 2026-03-06 22:37:37 +01:00
.cicd.overwrite feat: Add support for several newer platforms 2022-07-06 00:19:10 +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.8.0 [skip ci] 2026-03-14 16:51:02 +00:00
README.md Update CI 2026-03-06 22:37:37 +01: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 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