Five fixes for rootless Docker setup on Arch Linux runners: 1. Write daemon.json (with containerd-snapshotter: false) BEFORE running dockerd-rootless-setuptool.sh, so Docker 29 starts with overlay2 from the very first boot instead of containerd snapshots. 2. Add DBUS_SESSION_BUS_ADDRESS to all systemctl --user tasks. Without it, systemctl --user fails with "Connection refused" on Arch Linux where the D-Bus session bus isn't auto-discovered. 3. Fix pre-configure override port driver: use 'builtin' for slirp4netns and 'implicit' only for pasta. The previous unconditional 'implicit' caused dockerd to exit immediately on slirp4netns hosts. 4. Fix prune timer schedule from '*-* * */6:00:00' (invalid) to '*-*-* 00/6:00:00' (every 6 hours, valid systemd calendar spec). 5. Add explicit Docker 29→28 downgrade task for Debian/Ubuntu using version-pinned apt install with allow_downgrades. Closes GRM-158 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
28 lines
1003 B
YAML
28 lines
1003 B
YAML
---
|
|
- name: Check gitea_runner binary exists
|
|
ansible.builtin.stat:
|
|
path: "{{ gitea_runner_binary_path }}"
|
|
register: gitea_runner_stat
|
|
|
|
- name: Fail if gitea_runner binary is missing
|
|
ansible.builtin.fail:
|
|
msg: "gitea_runner binary not found at {{ gitea_runner_binary_path }}"
|
|
when: not gitea_runner_stat.stat.exists
|
|
|
|
- name: Verify gitea_runner is executable
|
|
ansible.builtin.command: "{{ gitea_runner_binary_path }} --version"
|
|
register: gitea_runner_version_output
|
|
changed_when: false
|
|
|
|
- name: Verify rootless Docker connectivity
|
|
ansible.builtin.command: docker version
|
|
become: true
|
|
become_user: "{{ gitea_runner_service_user }}"
|
|
environment:
|
|
DOCKER_HOST: "unix:///run/user/{{ gitea_runner_uid }}/docker.sock"
|
|
XDG_RUNTIME_DIR: "/run/user/{{ gitea_runner_uid }}"
|
|
DBUS_SESSION_BUS_ADDRESS: "unix:path=/run/user/{{ gitea_runner_uid | default(0) }}/bus"
|
|
register: gitea_runner_docker_version_output
|
|
changed_when: false
|
|
when: gitea_runner_docker_rootless_setup
|