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.
33 lines
866 B
YAML
33 lines
866 B
YAML
---
|
|
- name: Include Docker installation
|
|
ansible.builtin.include_tasks: docker.yml
|
|
|
|
- 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
|
|
|
|
- name: Include validation
|
|
ansible.builtin.include_tasks: validate.yml
|
|
|
|
- name: Include registration
|
|
ansible.builtin.include_tasks: register.yml
|
|
when: not skip_runner_registration
|
|
|
|
- name: Include service setup
|
|
ansible.builtin.include_tasks: service.yml
|
|
|
|
- name: Include prune setup
|
|
ansible.builtin.include_tasks: prune.yml
|
|
|
|
- name: Include integration test
|
|
ansible.builtin.include_tasks: integration_test.yml
|
|
when: not skip_runner_registration
|