aboutsummaryrefslogtreecommitdiff
path: root/COMMAND_LOG.md
diff options
context:
space:
mode:
Diffstat (limited to 'COMMAND_LOG.md')
-rw-r--r--COMMAND_LOG.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/COMMAND_LOG.md b/COMMAND_LOG.md
index e386d19..c530013 100644
--- a/COMMAND_LOG.md
+++ b/COMMAND_LOG.md
@@ -593,3 +593,40 @@ vps : ok=28 changed=3 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0
```
- **Verified 1:1 match (`ok`):** `common` packages, `certbot` timer & certs, `valkey` service, `searxng` user/group/dirs/git/settings.yml/limiter.toml/uwsgi.ini, `nginx.conf`, `default.apps-available/searxng.conf`, and `sites-available/searxng.conf`.
- **Expected cleanups flagged (`changed`):** Removing unused `/etc/nginx/sites-enabled/miguelpedro.xyz.br` stub symlink (`example.com`) and trailing blank lines in `/etc/nginx/sites-available/default`.
+
+
+---
+
+## 10. cgit & fcgiwrap Deployment and Verification (2026-10-29)
+**Pre-flight Check:**
+```bash
+.venv/bin/ansible-playbook site.yml --check --diff
+```
+**Output:** `ok=27 changed=0 failed=0`
+
+**Apply `cgit` Role:**
+```bash
+.venv/bin/ansible-playbook site.yml --tags "cgit" --diff
+```
+**Output:** `ok=18 changed=16 failed=0` (Installed `cgit`, `fcgiwrap`, `python3-docutils`, `python3-markdown`, `python3-pygments`; created `git` user/group `999:989`; added `www-data` to `git` group; configured `/srv/git` with `02750` and `git-shell-commands`; deployed `/etc/cgitrc` and `/etc/nginx/sites-available/cgit.conf`; reloaded `nginx` and restarted `fcgiwrap`).
+
+**Health & SSH Verification:**
+```bash
+ssh root@miguelpedro.xyz.br '
+curl -s -i -H "Host: git.miguelpedro.xyz.br" http://127.0.0.1/ | head -n 35
+curl -s -I -H "Host: git.miguelpedro.xyz.br" http://127.0.0.1/cgit-css/cgit.css
+id git; id www-data
+'
+ssh -o BatchMode=yes git@miguelpedro.xyz.br list
+```
+**Output:**
+- `http://127.0.0.1/` (`Host: git.miguelpedro.xyz.br`) returned `cgit v1.2.3` HTML (`Miguel Pedro Git Repositories`).
+- `/cgit-css/cgit.css` returned `HTTP/1.1 200 OK` (`text/css`, `15112` bytes).
+- `uid=999(git) gid=989(git)`, `uid=33(www-data) gid=33(www-data) groups=33(www-data),989(git)`.
+- `ssh git@miguelpedro.xyz.br list` connected cleanly via `git-shell` with exit code `0`.
+
+**Post-Apply Idempotency Check:**
+```bash
+.venv/bin/ansible-playbook site.yml --check --diff
+```
+**Output:** `ok=42 changed=0 unreachable=0 failed=0 skipped=0`