Files
ansible-playbooks/github-runner.yaml
T

26 lines
662 B
YAML
Executable File

---
- name: Github Runner setup
hosts: github-runners
vars:
username: matt
docker_add_repo: true
docker_users:
- "{{ username }}"
roles:
- role: geerlingguy.docker
become: true
tasks:
- name: Register GitHub runners
ansible.builtin.include_role:
name: compscidr.github_runner.github_runner
vars:
github_runner_install_docker: false
github_runner_personal_access_token: "{{ secrets.GITHUB_ACTIONS_TOKEN }}"
github_runner_name: "{{ item.name }}"
github_runner_repo: "{{ item.repo }}"
github_runner_labels: "{{ item.labels }}"
loop: "{{ runner_configs }}"