ansible: finish removing the compose runners intelbuilder and armbuilder (#600) #359

Open
myagent wants to merge 2 commits from pixel/600-ansible-runners-intelbuilder-and into main
Collaborator

Finishes what b8db20b (2026-11-10) started: it removed the compose runners' task file and template, but left the host variables and the include, so the playbook failed on intelbuilder and quincy at an include of a file that no longer exists.

What changes

  • ansible/hosts.yml: removes wants_forgejo_runner_compose, the vaulted forgejo_runner_shared_secret, forgejo_runner_arch, forgejo_runner_name, forgejo_runner_version and forgejo_instance_url from intelbuilder and quincy. Both hosts stay in the inventory with their other variables.
  • ansible/main.yml: removes the task that included tasks/forgejo-runner-compose.yml.
  • docs/forgejo-runner-build-cache.md: a new section, The old compose runners, with the steps by hand below.

What this does not do

Nothing here stops the runners. Both stay registered in Forgejo, and armbuilder (arm64, a Raspberry Pi) was online on 2026-11-28 and takes jobs that ask for the bare labels ubuntu, docker-cli or node-bookworm. The owner's steps, which an agent cannot do:

  1. In Forgejo: Site administration, Actions, Runners: delete intelbuilder and armbuilder. This is what stops jobs going to them.

  2. On intelbuilder and on quincy:

    cd /opt/p2-network/forgejo-runner-compose && docker compose down -v
    sudo rm -rf /opt/p2-network/forgejo-runner-compose /srv/runner-data
    

Merging this means neither runner is wanted. If an arm64 runner is wanted after all, the ansible change is still right (the task and template these variables fed are gone, and 9.0.3 does not match Forgejo 17), but skip the steps for armbuilder and say so on the task: it then needs a new deployment without the bare labels.

Checked

  • grep -rn "forgejo_runner\|forgejo-runner-compose\|forgejo_instance_url" ansible finds nothing.
  • Both files parse, and ansible-inventory -i hosts.yml --host <host> shows only the remaining variables for both hosts.
  • Not run: the playbook itself, on either host (ansible-playbook --syntax-check stops here because the galaxy roles are not installed on this machine).

🤖 Generated with Claude Code

Finishes what b8db20b (2026-11-10) started: it removed the compose runners' task file and template, but left the host variables and the include, so the playbook failed on `intelbuilder` and `quincy` at an include of a file that no longer exists. ## What changes - `ansible/hosts.yml`: removes `wants_forgejo_runner_compose`, the vaulted `forgejo_runner_shared_secret`, `forgejo_runner_arch`, `forgejo_runner_name`, `forgejo_runner_version` and `forgejo_instance_url` from `intelbuilder` and `quincy`. Both hosts stay in the inventory with their other variables. - `ansible/main.yml`: removes the task that included `tasks/forgejo-runner-compose.yml`. - `docs/forgejo-runner-build-cache.md`: a new section, The old compose runners, with the steps by hand below. ## What this does not do Nothing here stops the runners. Both stay registered in Forgejo, and `armbuilder` (arm64, a Raspberry Pi) was online on 2026-11-28 and takes jobs that ask for the bare labels `ubuntu`, `docker-cli` or `node-bookworm`. The owner's steps, which an agent cannot do: 1. In Forgejo: Site administration, Actions, Runners: delete `intelbuilder` and `armbuilder`. This is what stops jobs going to them. 2. On `intelbuilder` and on `quincy`: ```sh cd /opt/p2-network/forgejo-runner-compose && docker compose down -v sudo rm -rf /opt/p2-network/forgejo-runner-compose /srv/runner-data ``` Merging this means neither runner is wanted. If an arm64 runner is wanted after all, the ansible change is still right (the task and template these variables fed are gone, and 9.0.3 does not match Forgejo 17), but skip the steps for `armbuilder` and say so on the task: it then needs a new deployment without the bare labels. ## Checked - `grep -rn "forgejo_runner\|forgejo-runner-compose\|forgejo_instance_url" ansible` finds nothing. - Both files parse, and `ansible-inventory -i hosts.yml --host <host>` shows only the remaining variables for both hosts. - Not run: the playbook itself, on either host (`ansible-playbook --syntax-check` stops here because the galaxy roles are not installed on this machine). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
b8db20b removed tasks/forgejo-runner-compose.yml and its template but left
the include in main.yml and the runner variables on both hosts, so the
playbook failed there on the missing file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pixel-board left a comment

Approve. The change does what #600 asks on the ansible side. Both host blocks in ansible/hosts.yml lose all forgejo_runner_*, wants_forgejo_runner_compose and forgejo_instance_url variables and keep their other keys, and ansible/main.yml no longer includes the missing tasks/forgejo-runner-compose.yml.

What I checked:

  • git grep finds none of those names left in ansible/.
  • Every remaining include_tasks target in main.yml exists.
  • The doc's removal steps match the task and template deleted in b8db20b. The project lives in /opt/p2-network/forgejo-runner-compose, the runner data in /srv/runner-data (root-owned, so sudo rm is right), and patrick is in docker_users on both hosts, so docker compose without sudo works.
  • Deleting the runners in Forgejo is enough to stop jobs. They were registered server-side with a shared secret, so the leftover runner-daemon can't register itself again.

Not run: ansible isn't installed here, so I couldn't run the playbook or ansible-inventory.

Two nits on lines, neither blocking: --rmi all would also remove the leftover images, and the README's index entry doesn't mention the new section.

Review by pixel: task #606, round 1 of 3, commit bb18e67196.

Approve. The change does what #600 asks on the ansible side. Both host blocks in `ansible/hosts.yml` lose all `forgejo_runner_*`, `wants_forgejo_runner_compose` and `forgejo_instance_url` variables and keep their other keys, and `ansible/main.yml` no longer includes the missing `tasks/forgejo-runner-compose.yml`. What I checked: - `git grep` finds none of those names left in `ansible/`. - Every remaining `include_tasks` target in `main.yml` exists. - The doc's removal steps match the task and template deleted in b8db20b. The project lives in `/opt/p2-network/forgejo-runner-compose`, the runner data in `/srv/runner-data` (root-owned, so `sudo rm` is right), and `patrick` is in `docker_users` on both hosts, so `docker compose` without sudo works. - Deleting the runners in Forgejo is enough to stop jobs. They were registered server-side with a shared secret, so the leftover `runner-daemon` can't register itself again. Not run: ansible isn't installed here, so I couldn't run the playbook or `ansible-inventory`. Two nits on lines, neither blocking: `--rmi all` would also remove the leftover images, and the README's index entry doesn't mention the new section. Review by pixel: task #606, round 1 of 3, commit bb18e671960dc472d076a1cb7d43edfc11e116fb.
Collaborator

Nit: this index entry still describes the doc as only "the two runners (scout, gw5-apsydsn)…". Now that the doc also holds the removal steps for the old compose runners (intelbuilder, armbuilder), someone looking for those from the README won't see them. Adding "and removing the old compose runners intelbuilder and armbuilder" would fix that. Not blocking.

Nit: this index entry still describes the doc as only "the two runners (scout, gw5-apsydsn)…". Now that the doc also holds the removal steps for the old compose runners (`intelbuilder`, `armbuilder`), someone looking for those from the README won't see them. Adding "and removing the old compose runners intelbuilder and armbuilder" would fix that. Not blocking.
@ -58,0 +76,4 @@
2. On each host:
```sh
cd /opt/p2-network/forgejo-runner-compose && docker compose down -v
Collaborator

Nit: docker compose down -v removes the containers and the volumes (the docker_certs volume and dind's anonymous /var/lib/docker volume, with the job images in it), but leaves the host's own copies of code.forgejo.org/oci/docker:dind and code.forgejo.org/forgejo/runner:9.0.3. docker compose down -v --rmi all would remove those too, so nothing of the runner is left on either host. Not blocking.

Nit: `docker compose down -v` removes the containers and the volumes (the `docker_certs` volume and dind's anonymous `/var/lib/docker` volume, with the job images in it), but leaves the host's own copies of `code.forgejo.org/oci/docker:dind` and `code.forgejo.org/forgejo/runner:9.0.3`. `docker compose down -v --rmi all` would remove those too, so nothing of the runner is left on either host. Not blocking.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'pixel/600-ansible-runners-intelbuilder-and:pixel/600-ansible-runners-intelbuilder-and'
git switch 'pixel/600-ansible-runners-intelbuilder-and'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'pixel/600-ansible-runners-intelbuilder-and'
git switch 'pixel/600-ansible-runners-intelbuilder-and'
git rebase 'main'
git switch 'main'
git merge --ff-only 'pixel/600-ansible-runners-intelbuilder-and'
git switch 'pixel/600-ansible-runners-intelbuilder-and'
git rebase 'main'
git switch 'main'
git merge --no-ff 'pixel/600-ansible-runners-intelbuilder-and'
git switch 'main'
git merge --squash 'pixel/600-ansible-runners-intelbuilder-and'
git switch 'main'
git merge --ff-only 'pixel/600-ansible-runners-intelbuilder-and'
git switch 'main'
git merge 'pixel/600-ansible-runners-intelbuilder-and'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sophie/homelab!359
No description provided.