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
828 B
YAML
17 lines
828 B
YAML
---
|
|
# Run by verify.yml in a child ansible-playbook process, because the CI guard reads the
|
|
# controller's environment (lookup env), which a play cannot change; the child gets its
|
|
# environment from the task that starts it, so the result does not depend on what the runner
|
|
# exports. With a CI variable set it fails at the CI guard; with them blank it fails at the
|
|
# registration inputs assert of the mint, because gitea_runner_token_host is empty. Either way
|
|
# it must stop before the registration is backed up, stopped or removed.
|
|
- name: Force a re-registration with a controlled environment
|
|
hosts: all
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Run the role with gitea_runner_force_register
|
|
ansible.builtin.include_role:
|
|
name: mortis.kamino.gitea_runner
|
|
vars:
|
|
gitea_runner_force_register: true
|