---
- name: Deploy Airflow Workers
  hosts: airflow_workers
  gather_facts: yes
  vars_files:
    - group_vars/all.yml
    - group_vars/all/vault.yml
  pre_tasks:
    - name: Announce worker deployment
      debug:
        msg: "Starting deployment for Airflow Worker: {{ inventory_hostname }} ({{ ansible_host }})"
  roles:
    - airflow-worker
    - ytdlp-worker
