{"id":22218260,"url":"https://github.com/antmelekhin/ansible-role-gitlab-runner","last_synced_at":"2026-04-02T18:34:43.022Z","repository":{"id":188248298,"uuid":"674303403","full_name":"antmelekhin/ansible-role-gitlab-runner","owner":"antmelekhin","description":"An Ansible role to install GitLab Runner.","archived":false,"fork":false,"pushed_at":"2025-03-08T10:55:43.000Z","size":114,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T11:27:21.650Z","etag":null,"topics":["ansible","ansible-role","ci","gitlab","gitlab-runner","linux","windows"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/ui/standalone/roles/antmelekhin/gitlab_runner/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antmelekhin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-03T15:59:19.000Z","updated_at":"2025-03-08T10:55:44.000Z","dependencies_parsed_at":"2023-08-14T13:28:48.210Z","dependency_job_id":"a8b723ef-d07e-4531-b71b-ff13bd323ef7","html_url":"https://github.com/antmelekhin/ansible-role-gitlab-runner","commit_stats":null,"previous_names":["antmelekhin/ansible-role-gitlab-runner"],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antmelekhin%2Fansible-role-gitlab-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antmelekhin%2Fansible-role-gitlab-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antmelekhin%2Fansible-role-gitlab-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antmelekhin%2Fansible-role-gitlab-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antmelekhin","download_url":"https://codeload.github.com/antmelekhin/ansible-role-gitlab-runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245414550,"owners_count":20611367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","ci","gitlab","gitlab-runner","linux","windows"],"created_at":"2024-12-02T22:19:56.494Z","updated_at":"2026-04-02T18:34:37.968Z","avatar_url":"https://github.com/antmelekhin.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"GitLab Runner\n=============\n\nAn Ansible role to install [GitLab Runner](https://docs.gitlab.com/runner/).\n\nUpdate to 2.x\n-------------\n\nThe role version 1.x contains the task `Pin Gitlab Runner APT repository` that creates the pinning configuration file and actual for Debian Stretch only.\nI've removed this task because it brakes package version selection in `Install Gitlab Runner package` task, and the role doesn’t support the Debian Stretch.\nTo continue using this role without side effects, you'll need to delete the pinning configuration file manually or add appropriate task in your ansible playbook file.\n\n```yaml\n- name: 'Install GitLab Runner'\n  hosts: all\n\n  pre_tasks:\n    - name: 'Remove GitLab Runner APT pinning file'\n      ansible.builtin.file:\n        path: '/etc/apt/preferences.d/99-gitlab-runner'\n        state: absent\n      become: true\n\n  roles:\n    - role: antmelekhin.gitlab_runner\n```\n\nUpdate to 3.x\n-------------\n\nSince the 3.0.0 version of the role, some variables have changed. You will need to update them in your playbooks.\n\n- `gitlab_runner_download_url` to `gitlab_runner_binary_download_url`\n- `gitlab_runner_download_path` to `gitlab_runner_binary_download_path`\n- `gitlab_runner_install_path` to `gitlab_runner_binary_install_path`\n\nRequirements\n------------\n\n- Supported version of Ansible: 2.12 and higher. Systems with Python versions below than 3.7 are not compatible with ansible-core 2.17 (see [ansible/ansible#83357](https://github.com/ansible/ansible/issues/83357#issuecomment-2150254754)).\n- `pywinrm` is a python library for connection Ansible to Windows hosts via [WinRM](https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html).\n- Supported platforms:\n  - Amazon Linux\n    - 2\n    - 2023\n  - Debian\n    - 10\n    - 11\n    - 12\n  - Fedora\n    - 39\n    - 40\n  - MacOSX\n    - all\n  - RHEL\n    - 7\n    - 8\n    - 9\n  - Ubuntu\n    - 18.04\n    - 20.04\n    - 22.04\n  - Windows\n    - all\n\nRole Variables\n--------------\n\nAll variables that can be overridden are stored in the [defaults/main.yml](https://github.com/antmelekhin/ansible-role-gitlab-runner/blob/main/defaults/main.yml) file.\nPlease refer to the [meta/argument_specs.yml](https://github.com/antmelekhin/ansible-role-gitlab-runner/blob/main/meta/argument_specs.yml) file for a description of the available variables.\nSimilarly, descriptions and defaults for preset variables can be found in the [vars/main.yml](https://github.com/antmelekhin/ansible-role-gitlab-runner/blob/main/vars/main.yml) file.\n\nDependencies\n------------\n\nWhen using Ansible core, you will also need to install the following Ansible collections:\n\n```yaml\n---\ncollections:\n  - name: community.general\n  - name: community.windows\n```\n\nExample Playbook\n----------------\n\nInstall GitLab Runner:\n\n```yaml\n---\n- name: 'Install GitLab Runner'\n  hosts: all\n\n  roles:\n    - role: antmelekhin.gitlab_runner\n```\n\nInstall GitLab Runner v16.9.1:\n\n```yaml\n---\n- name: 'Install GitLab Runner v16.9.1'\n  hosts: all\n\n  roles:\n    - role: antmelekhin.gitlab_runner\n      gitlab_runner_package_version: '16.9.1-1'\n```\n\nInstall GitLab Runner and configure the shell executor:\n\n```yaml\n---\n- name: 'Install GitLab Runner'\n  hosts: all\n\n  roles:\n    - role: antmelekhin.gitlab_runner\n\n  post_tasks:\n    - name: 'Register GitLab Runner'\n      ansible.builtin.copy:\n        content: |\n          concurrent = 1\n          check_interval = 0\n          shutdown_timeout = 0\n\n          [session_server]\n            session_timeout = 1800\n\n          [[runners]]\n            name = \"{{ ansible_fqdn }}\"\n            url = \"https://gitlab.com\"\n            token = \"xxxxxxxxxxxx\"\n            executor = \"shell\"\n        dest: '/etc/gitlab-runner/config.toml'\n        owner: 'root'\n        group: 'root'\n        mode: 0600\n```\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\n\nMelekhin Anton.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantmelekhin%2Fansible-role-gitlab-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantmelekhin%2Fansible-role-gitlab-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantmelekhin%2Fansible-role-gitlab-runner/lists"}