Files
ansible-playbooks/github-runner.yaml
Matthew Spencer 788a7f1e5a Add watchtower
This will ensure the github runner container always updated
2025-01-07 20:17:45 +00:00

33 lines
813 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
- role: compscidr.github_runner.github_runner
vars:
github_runner_install_docker: false
github_runner_personal_access_token: "{{ secrets.GITHUB_ACTIONS_TOKEN }}"
github_runner_name: "aarch64-rpi5-runner"
github_runner_repo: "m5p3nc3r/website"
github_runner_lables: "aarch64, rpi5"
tasks:
- name: Start watchtower
community.docker.docker_container:
name: watchtower
image: containrrr/watchtower
restart_policy: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
state: started