No description
Find a file
semantic-release-bot b88ae3caa7 chore(release): 1.3.0 [skip ci]
# [1.3.0](https://github.com/de-it-krachten/ansible-role-gitlab_cli/compare/v1.2.0...v1.3.0) (2026-03-15)

### Features

* Added support for Fedora 43 ([2a68a7b](2a68a7b1cb))
* Drop support for Fedora 41 ([671bdb2](671bdb2227))
* Drop support for openSUSE Leap 15 ([dbe8aa4](dbe8aa4b58))
* Drop support for SUSE Linux Enterprise 15 ([136a2d6](136a2d6f96))
2026-03-15 11:37:41 +00:00
.github/workflows Update CI 2026-03-14 19:32:14 +01:00
defaults fix: Fix for package rename by Gitlab 2024-10-22 14:49:15 +02:00
meta Update CI 2026-03-14 19:32:14 +01:00
molecule/default Update CI 2026-03-14 19:32:14 +01:00
tasks Update supported platforms & CI 2025-08-06 19:54:34 +02:00
.ansible-lint First working code 2024-06-29 14:54:27 +02:00
.cicd Update CI 2026-03-06 22:38:08 +01:00
.cicd.overwrite Update CI 2026-03-14 19:32:14 +01:00
.collections First working code 2024-06-29 14:54:27 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 02:06:47 +01:00
.releaserc.yml Update CI 2026-03-06 22:38:08 +01:00
.roles First working code 2024-06-29 14:54:27 +02:00
.yamllint Update CI 2024-11-05 00:14:07 +01:00
CHANGELOG.md chore(release): 1.3.0 [skip ci] 2026-03-15 11:37:41 +00:00
README.md Update CI 2026-03-14 19:32:14 +01:00

CI

ansible-role-gitlab_cli

Installs the Gitlab CLI

Dependencies

Roles

None

Collections

  • community.general

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
  • Fedora 42
  • Fedora 43

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# Version of the CLI to install
gitlab_cli_version: latest

# Gitlab CLI - API
gitlab_cli_api: https://gitlab.com/api/v4/projects/gitlab-org%2Fcli

# Gitlab CLI - repo
gitlab_cli_repo: https://gitlab.com/gitlab-org/cli

# Lookup table for architecture
gitlab_cli:
  architecture:
    x86_64: amd64
    i386: i386
    armv6l: arm
    armv7l: arm
    aarch64: arm64
  system:
    Linux: linux
    Darwin: darwin

# Package name by OS family
gitlab_cli_package:
  RedHat: glab_{{ gitlab_cli_version }}_{{ gitlab_cli['system'][ansible_system] }}_{{ gitlab_cli['architecture'][ansible_architecture] }}.rpm
  Suse: glab_{{ gitlab_cli_version }}_{{ gitlab_cli['system'][ansible_system] }}_{{ gitlab_cli['architecture'][ansible_architecture] }}.rpm
  Debian: glab_{{ gitlab_cli_version }}_{{ gitlab_cli['system'][ansible_system] }}_{{ gitlab_cli['architecture'][ansible_architecture] }}.deb
  Alpine: glab_{{ gitlab_cli_version }}_{{ gitlab_cli['system'][ansible_system] }}_{{ gitlab_cli['architecture'][ansible_architecture] }}.apk

# Package download link
gitlab_cli_url: >-
  {{ gitlab_cli_repo }}/-/releases/v{{ gitlab_cli_version }}/downloads/{{ gitlab_cli_package[ansible_os_family] }}

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'gitlab_cli'
  hosts: all
  become: 'yes'
  tasks:
    - name: Include role 'gitlab_cli'
      ansible.builtin.include_role:
        name: gitlab_cli