---
# Changemaker role — Full deployment orchestration

- name: Clone/update repository
  ansible.builtin.include_tasks: clone.yml
  tags: [clone, deploy]

- name: Create required directories
  ansible.builtin.include_tasks: dirs.yml
  tags: [dirs, deploy]

- name: Generate .env configuration
  ansible.builtin.include_tasks: env.yml
  tags: [env, configure, deploy]

- name: Generate Homepage services.yaml
  ansible.builtin.include_tasks: services.yml
  tags: [services, configure, deploy]

- name: Deploy Docker stack
  ansible.builtin.include_tasks: deploy.yml
  tags: [deploy]

- name: Run health checks
  ansible.builtin.include_tasks: health.yml
  tags: [health, deploy]

- name: Configure backup cron
  ansible.builtin.include_tasks: backup.yml
  tags: [backup, deploy]
