Ansible Dry Run workflow in ansible-homelab-mono #220
Notifications
Due Date
No due date set.
Depends on
#218 delivery: dry-run-gated role and multiple dry-run checks
Mortis/Holocron
Reference: Mortis/Holocron#220
Reference in new issue
Block a user
Part of #166
Question
Build the pre-merge Ansible dry run in
Defame1297/ansible-homelab-monoas decided in Pre-merge Ansible dry run without exposing production credentials (decisions 2–8). The PR in that repo touches.gitea/**anddocs/agents/**, which are protected file patterns, so a human merges it..gitea/workflows/ansible-dry-run.yml, workflowAnsible Dry Run, jobansible_dry_run:on: pull_request_target: types: [opened, synchronize, reopened, labeled], with the same paths asprovision.yml's push trigger.jqover the event JSON):Claude→ run on any listed event.Claude→ run only when the action islabeled,changes.added_labels[*].namecontainsDry run, andsender.loginis on the human allowlist.provision.yml.scripts/ci/classify_changes.shagainst the merge base, then--check --difffor each selected stage, in stage order, with a 20-minute cap per stage. No stages → comment "no Ansible stages affected" and pass.concurrency: group: homelab-provision, cancel-in-progress: false.Dry runlabel in the repo.docs/agents/delivery.mdsection 2: addAnsible Dry Run / ansible_dry_run (pull_request_target):dry-run-gated. This needs delivery: dry-run-gated role and multiple dry-run checks.The resolution records the observed status context name and any differences from the above.
Input from delivery: dry-run-gated role and multiple dry-run checks
delivery0.7.0 (PR 221) accepts theansible-homelab-monoentry`Ansible Dry Run / ansible_dry_run (pull_request_target)`: dry-run-gatednext to the Fluxdry-run.The workflow has to meet these requirements:
Dry runlabel, by name. A barelabeledtrigger fires on every label,Status/Ready for Humanincluded. That label is one agents add when they stop, so an agent's own label write would run the human's gate.skippedstatus is ignored for this check. A job-levelifthat postsskippedis fine:delivery-ci-checksreads it as still awaiting the gate. Onlypending,failureandsuccesscount as a run.delivery.mdand the branch-protection required checks. If the name is wrong, the check never matches and staysawaiting-gateforever.pull_request_targetstatus on. The agents only read the PR's head SHA. If Gitea posts it on the base commit instead, the check never shows up and the design needs revisiting. Check this on the first run.