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
857 B
YAML
17 lines
857 B
YAML
---
|
|
# The one download of the runner binary, shared by install.yml (straight onto the live path,
|
|
# since nothing runs yet) and update.yml (into a staging path next to it, before
|
|
# mortis.kamino._binary_update stops the daemon and swaps it in). get_url checks the published
|
|
# sha256 before it moves the file to gitea_runner_download_dest, so a failed or tampered
|
|
# download leaves that path as it was.
|
|
# Tagged install and update: an include does not pass its tags on to the tasks it includes,
|
|
# so under --tags update a task tagged install only would be skipped.
|
|
- name: Download and verify the Gitea Runner binary
|
|
become: true
|
|
ansible.builtin.get_url:
|
|
url: "{{ gitea_runner_download_url }}"
|
|
dest: "{{ gitea_runner_download_dest }}"
|
|
checksum: "sha256:{{ gitea_runner_checksum_url }}"
|
|
mode: "0755"
|
|
tags: [gitea_runner, install, update]
|