Copied from the maintainer's local role and reworked for the Collection: the binary swap and rollback of an update go through the internal _binary_update role, input checks move to tasks/validate.yml, the removal ends the role, commands take argv, and the molecule tooling needs an explicit collections requirements file. Adds a molecule scenario with stub Docker, runner and release files. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
17 lines
474 B
YAML
17 lines
474 B
YAML
---
|
|
- name: Ensure runner work directory exists
|
|
become: true
|
|
ansible.builtin.file:
|
|
path: "{{ gitea_runner_work_dir }}"
|
|
state: directory
|
|
owner: "{{ gitea_runner_user }}"
|
|
group: "{{ gitea_runner_group }}"
|
|
mode: "0750"
|
|
tags: [gitea_runner, install]
|
|
|
|
- name: Download Gitea Runner binary
|
|
ansible.builtin.include_tasks: download.yml
|
|
vars:
|
|
gitea_runner_download_dest: "{{ gitea_runner_install_dir }}/gitea-runner"
|
|
tags: [gitea_runner, install]
|