feat/automatic-update-and-backup #1

Merged
gitea_admin merged 6 commits from feat/automatic-update-and-backup into main 2026-06-11 15:51:49 +00:00
Showing only changes of commit 4971eca296 - Show all commits

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