Add base__ai_worker_user var (default empty), a new operational_access.yml task file that drops a validated sudoers file for the named user, and wire it into base/tasks/main.yml after the hardening includes under the `users` tag. Set base__ai_worker_user: claude in group_vars/control so that applying base to ubongo is idempotent with the manual /etc/sudoers.d/claude-ai-worker drop-in already in place. Password remains locked; NOPASSWD is the only sudo path; actions are attributed via auditd (ADR-021). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| base | ||
| dev_env | ||
| docker_host | ||
| integration_test | ||
| netbird_coordinator | ||
| public_dns | ||
| reverse_proxy | ||
| README.md | ||
roles/
Local Ansible roles. No Galaxy roles — every role is written and maintained here
(ADR-003). Scaffold new ones with make new-role NAME=<name>; never create the
directory structure by hand.
Each role must have: a molecule/default/ scenario (Debian 13), a populated
README.md, and a filled-in meta/main.yml. Conventions: CLAUDE.md and
docs/runbooks/new-role.md.
Current state: base is partially built — its firewall (nftables) and
hardening (SSH key-only + fail2ban) concerns are implemented, tested, and the
hardening concern is applied to askari; the remaining concerns (auditd, packages,
users) are not yet built. docker_host (Docker engine + Compose), reverse_proxy
(Caddy), public_dns (Gandi), and dev_env are built. See STATUS.md for the
authoritative breakdown.