This is an Ansible role to install gitlab_cli.
These platforms are supported:
- Ubuntu 20.04
- Ubuntu 22.04
- Debian 11
- Debian 12
- EL 8 (Tested on Rocky Linux 8)
- EL 9 (Tested on Rocky Linux 9)
- Fedora 40
- openSUSE Leap 15.5
Variable | Default | Description |
---|---|---|
gitlab_cli_package_version | "1.29.0" |
Version of GitLab CLI to install |
gitlab_cli_package_url | [See vars/main.yml] | URL of GitLab CLI package |
gitlab_cli_package_path | "/tmp/" |
Temporary path to download GitLab CLI package |
None
- name: Use diademiemi.gitlab_cli role
hosts: "{{ target | default('gitlab_cli') }}"
roles:
- role: "diademiemi.gitlab_cli"
tags: ['diademiemi', 'gitlab_cli', 'setup']
MIT
- diademiemi (@diademiemi)
This repository comes with Molecule that run in Podman on the supported platforms. Install Molecule by running
pip3 install -r requirements.txt
Run the tests with
molecule test
These tests are automatically ran by Gitlab Actions on push. If the tests are successful, the role is automatically published to Ansible Galaxy.
Gitlab Actions is supposed to fail for this gitlab_cli repository, as it does not contain any meaningful role. There is an explicit assertion to check if the role name has been changed from gitlab_cli
which causes the test to fail.