ansible port: git role (remote-sync + github<->forgejo mirror-drift) #209
Labels
No labels
burndown-2026-06
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/infrastructure#209
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the up-to-date.py -> ansible port. Serial chain step 1 of 4. Dispatch in order; this one first.
Context
infrastructure/ansible:playbooks/freshen.ymlruns roleshomebrew,agent-compose,repos. Run viacoily ansible-freshen(check) /action=apply.reposrole +library/repo_registry.py(discovery) already landed (#208). Read them for the pattern: a read-only custom module underansible/library/(shebang#!/usr/bin/python, found vialibrary = libraryin ansible.cfg) plus a role that loops.agentic-os-kai/scripts/up-to-date.py, the git step (step 6) and helperssync_repo,ensure_remote_topology,remote_branch,in_progress_op,stale_branches,worktrees.Task
Add a
gitrole (+library/repo_status.pyif a module is cleaner than tasks) that, per local repo across therepos_known_orgsdirs:git fetch --all --prune, report ahead/behind vs each remote, uncommitted/untracked, in-progress op, detached HEAD, worktrees, stash, stale unmerged branches.pull --ff-onlyfrom each remote (apply mode only; check mode reports).Wire into
freshen.ymlwith taggit, afterrepos.Acceptance
coily exec ansible-freshen(check) runs the role clean;--tags gitscopes it.