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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user