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>
43 lines
1005 B
YAML
43 lines
1005 B
YAML
---
|
|
# Nextcloud deployment — PHP-FPM + MariaDB + Redis + nginx
|
|
|
|
- name: Deploy Nextcloud Server
|
|
hosts: all
|
|
become: true
|
|
vars:
|
|
nextcloud_domain: "{{ domain }}"
|
|
nextcloud_admin: "{{ cloud_admin_user | default('admin') }}"
|
|
nextcloud_storage_gb: "{{ cloud_storage_gb | default('10') }}"
|
|
target_host: "{{ target_host | default('localhost') }}"
|
|
|
|
tasks:
|
|
- name: Include Nextcloud installation
|
|
include_tasks: tasks/install.yml
|
|
|
|
- name: Include Nextcloud configuration
|
|
include_tasks: tasks/configure.yml
|
|
|
|
- name: Include Nextcloud nginx reverse proxy
|
|
include_tasks: tasks/nginx.yml
|
|
|
|
handlers:
|
|
- name: reload nginx
|
|
service:
|
|
name: nginx
|
|
state: reloaded
|
|
|
|
- name: restart php-fpm
|
|
service:
|
|
name: php8.2-fpm
|
|
state: restarted
|
|
|
|
- name: restart mariadb
|
|
service:
|
|
name: mariadb
|
|
state: restarted
|
|
|
|
- name: restart redis
|
|
service:
|
|
name: redis-server
|
|
state: restarted
|