Ansible playbook that sets up your github runner given some config
- Edit
hosts.ini
file and add your gitlab runner's IP or if you have an SSH alias for it you can use that instead - Change the variables in the
hosts.ini
file to match yours - Your token can be found by heading to your repo URL, for example, https://github.com/hedche/ansible-github-runner, then
Settings
->Actions
->Runners
->New self-hosted runner
. The token will be in a section that looks like this (in this case the token isAPP3GJGWNJGNRWKLFJGNEGH3C
):
# Create the runner and start the configuration experience
$ ./config.sh --url https://github.com/hedche/ansible-github-runner --token APP3GJGWNJGNRWKLFJGNEGH3C
# Last step, run it!
$ ./run.sh