Files
n0mad1k 7484a0e034 Phantom v2: dual-mode architecture, security hardening, deployment management
- 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>
2026-03-09 15:45:24 -04:00

25 lines
666 B
YAML

---
# Pi-hole DNS server deployment (native installer)
- name: Deploy Pi-hole DNS Server
hosts: all
become: true
vars:
pihole_upstream: "{{ dns_upstream | default('9.9.9.9;149.112.112.112') }}"
pihole_domain: "{{ dns_domain | default('') }}"
pihole_blocklist: "{{ dns_blocklist | default('standard') }}"
target_host: "{{ target_host | default('localhost') }}"
tasks:
- name: Include Pi-hole installation
include_tasks: tasks/install.yml
- name: Include Pi-hole configuration
include_tasks: tasks/configure.yml
handlers:
- name: restart pihole-FTL
service:
name: pihole-FTL
state: restarted