From c91626a8ff5b68d811c6d6bb0007403a9314a831 Mon Sep 17 00:00:00 2001 From: Emil Simeonov Date: Fri, 19 Jun 2026 04:55:06 +0200 Subject: [PATCH] GRM-20: Ensure runner data directory exists in binary mode The binary_mode.yml task file did not create gitea_runner_data_dir when runner registration was skipped (as in molecule tests). This caused the binary scenario verify playbook to fail because the data directory assertion expected it to exist. Add an explicit directory creation step before config creation, mirroring the docker_mode.yml structure. --- ansible/roles/gitea-runner/tasks/binary_mode.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/gitea-runner/tasks/binary_mode.yml b/ansible/roles/gitea-runner/tasks/binary_mode.yml index ef25159..083ca38 100644 --- a/ansible/roles/gitea-runner/tasks/binary_mode.yml +++ b/ansible/roles/gitea-runner/tasks/binary_mode.yml @@ -5,6 +5,12 @@ - name: Include gitea_runner download ansible.builtin.include_tasks: download_gitea_runner.yml +- name: Ensure runner data directory exists + ansible.builtin.file: + path: "{{ gitea_runner_data_dir }}" + state: directory + mode: "0755" + - name: Include config creation ansible.builtin.include_tasks: config.yml