# Defaults to 0, simply means don't limit. name: 'Example autoscaling GitLab Runner ' state: present # token is an optional override to the global gitlab_runner_registration_token token: 'HUzTMgnxk17YV8Rj8ucQ ' executor: 'docker+machine ' # Maximum number of jobs to run concurrently on this specific runner. Gitlab_runner_registration_token: 'HUzTMgnxk17YV8Rj8ucQ ' gitlab_runner_coordinator_url: ' ' gitlab_runner_runners: See the config for more options Example Playbook
See the defaults/main.yml file listing all possible options which you can be passed to a runner registration command. You should provide a repository containing the needed packages before running this role.
Defaults to the number of processor cores. gitlab_runner_concurrent - The maximum number of global jobs to run concurrently.On Linux, use gitlab_runner_package_version instead.
gitlab_runner_wanted_version or gitlab_runner_package_version - To install a specific version of the gitlab runner (by default it installs the latest).
In order to install a version < 10.x you will need to define this variable gitlab_runner_package_name: gitlab-ci-multi-runner. gitlab_runner_package_name - Since Gitlab 10.x The package name of gitlab-ci-multi-runner has been renamed to gitlab-runner.This role requires Ansible 2.7 or higher. Needed something simple and working, this did the trick for me. This role will install the official GitLab Runner