Sources and inventory
Registering Git repositories, local directories, managing SSH fleet identities, and auto-onboarding hosts.
All automation in exocomp executes against registered Sources. A source represents a Git repository, local directory, or storage mount containing Ansible playbooks, roles, collections, and OpenTofu configurations.
Registering a source
Register a Git repository with exocomp source add:
exocomp source add homelab \
--url git@github.com:example/homelab.git \
--ref main
Or register a local path source:
exocomp source add local-homelab --path /srv/homelab
View configured sources in the CLI or Web UI:
exocomp source list
NAME KIND REF LAST SYNC TRUST
homelab git main 2026-10-11 22:30:00 trusted
In the Web UI, the sources list shows synchronization health, branch tracking, and active execution cards. Git sources can be synchronized from the CLI with exocomp source sync <name> or via the Sync now button in the Web UI:

Selecting a source opens its detail view, where you can inspect playbooks, run histories, trigger syncs, and launch new executions:

Source-scoped egress default
A source whose playbooks always need the same extra port records it once, beside the other source verbs:
exocomp source egress homelab 443 9090
source egress <name> [port...] sets the source's default egress set, replacing any previous
one; with no ports it clears the declaration. Every ansible run that names the source inherits
the set at queue admission, unioned with the run's own --egress grant and the ansible kind's
built-in SSH port 22. It is operator-set through the daemon only — a checked-out playbook
can never grant itself a port. The source's detail page shows the default (an Egress
default card), and the rules page shows each playbook rule's effective egress. See
Source-scoped egress default.
Source-scoped run-secrets default
A source whose tree needs a credential on every run, such as the env var an encrypted
group_vars tree reads its vault password from, records the binding once:
exocomp source run-secrets homelab tree-vault
source run-secrets <name> [binding] sets the source's default run-secret binding; with no
binding it clears it. Every ansible run that names the source inherits it at queue admission,
including a rule-fired playbook, unless the run passes its own --run-secrets, which wins.
The binding must already exist (exocomp run-secret add). --vault-project stays per run.
The source's detail page shows the default (a Run-secrets line and card), and the rules
page shows a secrets <binding> guard on each playbook rule that inherits one. See
Source-scoped run-secrets default.
Scheduling a play from a source
A recurring play can run from a source too, so it inherits the source's egress and run-secrets defaults:
exocomp schedule add nightly-converge --kind play --cron "0 0 3 * * *" \
--target tf:homelab --source homelab -- playbooks/site.yml
The playbook is relative to the source's checkout, and the source must already exist. The schedules page shows the source beside each play's target. See Scheduled plays from a source.
Dependency management in sources
exocomp enforces strict per-source isolation:
- Python dependencies (
pyproject.tomlorrequirements.txt): If a playbook directory contains a Python dependency manifest, exocomp usesuvto build an isolated virtualenv undercache/python/<source>/<hash>(Decision 0011). If no manifest is present, it executes using the pinned container toolchain. - Ansible collections (
requirements.yml): Per-source collection manifests are resolved viaansible-galaxyintocache/collections/<source>/<hash>(Decision 0015). Under the enforcing sandbox, local collection artifact paths (e.g.type: dirortype: filepointing to sibling directories) are granted read-only permissions automatically so collections install without sandbox permission violations.
SSH fleet keys and host onboarding
To manage target nodes without distributing individual SSH keys, exocomp maintains a single fleet identity key in the age envelope.
-
Onboard target hosts:
exocomp host onboard router.lan server0.lanhost onboardkeyscans each host, records its host key in the backed-upknown_hostsstore, ensures the sealed fleet SSH key exists, and prints the fleet public key to add to the target node's~/.ssh/authorized_keys. -
Inspect recorded host keys:
exocomp host known-hostsexocomp strictly verifies host fingerprints against its trusted
known_hostsstore. Connecting to an unpinned or changed host key is refused.
Using a different key for one source
exocomp's fleet key is deliberately one key for every host. If one source, inventory, or subset of hosts needs its own identity, bring the key yourself and wire it in as an ordinary Ansible credential, with the sandbox grant that lets the run read it:
- Store the private key outside the source checkout; a committed or checked-out controller key widens the repo's trust boundary and never needs to be there.
- Reference it in the source's
group_varsor inventory:ansible_ssh_private_key_file: /run/keys/sources/infra-deploy - Grant that file to the run:
exocomp playbook run site.yml --source infra --ssh-identity /run/keys/sources/infra-deploy - Push its public half to the target nodes with your own playbook — the onboarding runbook authorizes only the fleet public key.
The key declaration is per job and defaults to nothing; --ssh-identity is documented
fully in playbook run flags and
running the daemon. A run cannot read ~/.ssh or any
directory, only the exact named file(s).
Note that in v1 the recorded known_hosts is not yet enforced by a run and the
fleet (or any other) key is not yet loaded into a per-job ssh-agent (v1.1). Until
then Ansible's own connection settings apply. See
Managed-host SSH in operations/sources.md.
Connections
Local graphLinked from
- Knowledge base evolution logOverview3 links
- 2026-10-24“sources guide”
- 2026-10-18“sources guide”
- 2026-10-11“sources.md”
- exocomp knowledge baseOverview1. User guide (front and center)“Sources and inventory”
- Operator user guideGuideGetting started“Sources and inventory”
- Binding run-secrets to jobs“Sources”
- BootstrapOperationsAfter the wizard“sources”