Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/39services/ansible_role_gitlab_cli
Ansible role to install GitLab CLI
https://github.com/39services/ansible_role_gitlab_cli
Last synced: 8 days ago
JSON representation
Ansible role to install GitLab CLI
- Host: GitHub
- URL: https://github.com/39services/ansible_role_gitlab_cli
- Owner: 39services
- License: mit
- Created: 2023-05-08T14:35:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-07T11:28:39.000Z (7 months ago)
- Last Synced: 2024-12-06T12:13:06.605Z (17 days ago)
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Role GitLab CLI
=========[![Molecule Test](https://gitlab.com/diademiemi/ansible_role_gitlab_cli/actions/workflows/molecule.yml/badge.svg)](https://gitlab.com/diademiemi/ansible_role_gitlab_cli/actions/workflows/molecule.yml)
This is an Ansible role to install gitlab_cli.
Requirements
------------
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.5Role Variables
--------------Variable | Default | Description
--- | --- | ---
gitlab_cli_package_version | `"1.29.0"` | Version of GitLab CLI to install
gitlab_cli_package_url | [See [vars/main.yml](./vars/main.yml)] | URL of GitLab CLI package
gitlab_cli_package_path | `"/tmp/"` | Temporary path to download GitLab CLI packageDependencies
------------None
Example Playbook
----------------```yaml
- name: Use diademiemi.gitlab_cli role
hosts: "{{ target | default('gitlab_cli') }}"
roles:
- role: "diademiemi.gitlab_cli"
tags: ['diademiemi', 'gitlab_cli', 'setup']```
License
-------MIT
Author Information
------------------- diademiemi (@diademiemi)
Role Testing
------------This repository comes with Molecule that run in Podman on the supported platforms.
Install Molecule by running```bash
pip3 install -r requirements.txt
```Run the tests with
```bash
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.