7484a0e034
- Dual-mode operation: standalone + c2itall integrated (env var detection)
- SSH keys moved to ~/.ssh/c2deploy_ph-{id} with per-deployment known_hosts
- Ansible output streaming with filtered console + full log capture
- Deployment management menu: discover, SSH, teardown existing deployments
- Cert setup script (setup-cert.sh) deployed to servers for post-DNS LE certs
- Matrix hardening: unique secrets, SSRF protection, rate limits, nginx security headers
- Base hardening: fail2ban systemd backend (Debian 12), SSH limits, nginx jails
- Add-matrix-user helper script deployed to all Matrix servers
- .env support for standalone credential storage
- Config key rename: deploy_id → deployment_id (with backward compat)
- Provider cleanup playbooks for teardown
- Test suite with 50 tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
42 lines
955 B
YAML
42 lines
955 B
YAML
---
|
|
# Jellyfin installation from official apt repository
|
|
|
|
- name: Install prerequisites
|
|
apt:
|
|
name:
|
|
- curl
|
|
- gnupg
|
|
- ca-certificates
|
|
- nginx
|
|
- certbot
|
|
- python3-certbot-nginx
|
|
state: present
|
|
update_cache: true
|
|
|
|
- name: Add Jellyfin GPG signing key
|
|
ansible.builtin.get_url:
|
|
url: https://repo.jellyfin.org/jellyfin_team.gpg.key
|
|
dest: /usr/share/keyrings/jellyfin-archive-keyring.asc
|
|
mode: "0644"
|
|
|
|
- name: Add Jellyfin apt repository
|
|
apt_repository:
|
|
repo: "deb [signed-by=/usr/share/keyrings/jellyfin-archive-keyring.asc] https://repo.jellyfin.org/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} main"
|
|
state: present
|
|
filename: jellyfin
|
|
|
|
- name: Install Jellyfin
|
|
apt:
|
|
name: jellyfin
|
|
state: present
|
|
update_cache: true
|
|
|
|
- name: Allow HTTP/HTTPS through UFW
|
|
ufw:
|
|
rule: allow
|
|
port: "{{ item }}"
|
|
proto: tcp
|
|
loop:
|
|
- "80"
|
|
- "443"
|