fix: runner config
Some checks failed
Update Automation Tests / Integration Tests (pull_request) Failing after 43s

This commit is contained in:
aviyadeveloper 2026-06-11 17:28:17 +02:00
parent 890a23e8d5
commit 4971eca296

View File

@ -81,6 +81,24 @@
register: runner_registrations register: runner_registrations
changed_when: runner_registrations.rc == 0 changed_when: runner_registrations.rc == 0
- name: Create runner config files
ansible.builtin.copy:
dest: "/etc/act_runner-{{ item }}/config.yaml"
content: |
log:
level: info
runner:
file: .runner
capacity: 1
timeout: 3h
container:
network: host
privileged: false
options:
workdir_parent:
mode: "0644"
with_sequence: start=1 end={{ runner_count }}
- name: Display registration warning if token not provided - name: Display registration warning if token not provided
ansible.builtin.debug: ansible.builtin.debug:
msg: "Runner registration skipped - no token provided. Re-run with -e gitea_runner_token=TOKEN" msg: "Runner registration skipped - no token provided. Re-run with -e gitea_runner_token=TOKEN"
@ -99,7 +117,7 @@
[Service] [Service]
Type=simple Type=simple
ExecStart={{ runner_binary }} daemon ExecStart={{ runner_binary }} daemon --config config.yaml
WorkingDirectory=/etc/act_runner-{{ item }} WorkingDirectory=/etc/act_runner-{{ item }}
Restart=always Restart=always
RestartSec=10 RestartSec=10