25 lines
575 B
YAML
25 lines
575 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
roles:
|
|
- ansible-role-forgejo_runner
|
|
vars:
|
|
forgejo_runner_instance_token: secret
|
|
forgejo_runner_instance_url: https://git.example.com/
|
|
|
|
pre_tasks:
|
|
- name: Update apt cache
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
|
|
- name: Create forgejo-runner home
|
|
ansible.builtin.file:
|
|
path: /opt/forgejo-runner
|
|
mode: "0755"
|
|
state: directory
|
|
|
|
- name: Create .runner file
|
|
ansible.builtin.file:
|
|
path: /opt/forgejo-runner/.runner
|
|
mode: "0644"
|
|
state: touch
|