---
# Main Playbook - Nextcloud Stack Deployment
# This orchestrates the complete deployment process

- name: Nextcloud Stack - Complete Deployment
  hosts: all
  gather_facts: yes
  
  pre_tasks:
    - name: Display deployment banner
      debug:
        msg: |
          ╔════════════════════════════════════════════════════════════╗
          ║   Nextcloud Stack Deployment Starting                     ║
          ║   Target: {{ inventory_hostname }} ({{ ansible_host }})    ║
          ║   Domain: {{ domain }}                                     ║
          ╚════════════════════════════════════════════════════════════╝

- import_playbook: 01-preflight-checks.yml
- import_playbook: 02-system-setup.yml
- import_playbook: 03-docker-setup.yml
- import_playbook: 04-tailscale-setup.yml
- import_playbook: 05-deploy-stack.yml
- import_playbook: 06-configure-caddy.yml
- import_playbook: 07-setup-backups.yml
- import_playbook: 08-post-deployment.yml
