Compare commits

..

1 commit

Author SHA1 Message Date
4add1684c3 Enable additional ZIM archives for kiwix
New archives (~95G total):
- Project Gutenberg 2023 (72G) - 60,000+ public domain books
- iFixit (3.3G) - Repair guides
- Stack Exchange: SuperUser (3.7G), Math (6.9G)
- LibreTexts: Biology, Chemistry, Engineering, Mathematics, Physics, Humanities

Also:
- Fix transmission to only restart when config changes
- Update CLAUDE.md to use full ansible paths

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 12:47:54 -08:00
3 changed files with 20 additions and 11 deletions

View file

@ -81,15 +81,13 @@ After creating a PR, run `open <pr-url>` to open it in the browser (Claude Code'
## Ansible
Run playbooks from the `ansible/` directory.
```bash
# Install collection dependencies
ansible-galaxy collection install -r requirements.yml
ansible-galaxy collection install -r ansible/requirements.yml
# Dry-run before committing changes
ansible-playbook playbooks/indri.yml --check --diff
ansible-playbook ansible/playbooks/indri.yml --check --diff
# Apply changes
ansible-playbook playbooks/indri.yml
ansible-playbook ansible/playbooks/indri.yml
```

View file

@ -51,14 +51,14 @@ kiwix_zim_archives:
# LibreTexts - Open educational resources
- category: libretexts
filename: libretexts_en_biology_2025-01.zim # 2.1G
filename: libretexts.org_en_bio_2025-01.zim # 2.1G
- category: libretexts
filename: libretexts_en_chemistry_2025-01.zim # 2.0G
filename: libretexts.org_en_chem_2025-01.zim # 2.0G
- category: libretexts
filename: libretexts_en_engineering_2025-01.zim # 647M
filename: libretexts.org_en_eng_2025-01.zim # 647M
- category: libretexts
filename: libretexts_en_mathematics_2025-01.zim # 744M
filename: libretexts.org_en_math_2025-01.zim # 744M
- category: libretexts
filename: libretexts_en_physics_2025-01.zim # 464M
filename: libretexts.org_en_phys_2025-01.zim # 464M
- category: libretexts
filename: libretexts_en_humanities_2025-01.zim # 3.5G
filename: libretexts.org_en_human_2025-01.zim # 3.5G

View file

@ -21,8 +21,19 @@
path: ~/.config/transmission-daemon
state: absent
# Note: transmission must be stopped before modifying settings.json
# otherwise it may overwrite our changes on shutdown
- name: Check if settings.json needs updating
ansible.builtin.template:
src: settings.json.j2
dest: "{{ transmission_config_dir }}/settings.json"
mode: '0644'
check_mode: true
register: settings_check
- name: Stop transmission before config changes
ansible.builtin.command: brew services stop transmission-cli
when: settings_check.changed
register: brew_stop
changed_when: false
failed_when: false