/ansible-gitlab-runner-supervisord

Ansible playbook for installing and configuring a GitLab Runner. Based on https://lab.uberspace.de/guide_gitlab-runner.html using supervisord

Primary LanguageShell

ansible playbook GitLab Runner with supervisord

Ansible playbook for installing and configuring a GitLab Runner. There are other ansible playbooks for GitLab Runner, like haroldb/ansible-gitlab-runner or debops/ansible-gitlab_runner, but these need root access.

This role is based on Gitlab Runner for uberspace:

  • using supervisord
  • works in userspace (no root)
  • downloads sources from amazonaws.com, does not use a package manager (apt, yum)

Usage

Get your registration_token from https://gitlab.com/USERGROUP/PROJECT/-/settings/ci_cd#js-runners-settings or your own GitLab.

ansible-playbook install-ezmlm.yaml -i <inventory>.yaml -e "REGISTRATION_TOKEN=MyToKeNfRoMmYGitLab"

Optional paramter:

ansible-playbook install-ezmlm.yaml -i <inventory>.yaml -e "REGISTRATION_TOKEN=MyToKeNfRoMmYGitLab" -e "CI_SERVER_URL: https://gitlab.com" -e "TAG_LIST: master" -e "EXECUTOR: shell"