- name: Dynamic HLA Microservices Deployer hosts: localhost gather_facts: yes vars: # Passed from the Gitea workflow, e.g., "000-master 001-secondary" changed_services_raw: "" agebd_env: "dev" tasks: # 1. Fail early if no services were modified - name: Check if there are services to deploy ansible.builtin.meta: end_play when: changed_services_raw | trim == "" # 2. Main Loop: Loop through the list of modified service names - name: Deploy Modified Services include_tasks: plays/service-deploy.yml loop: "{{ changed_services_raw.split() }}" loop_control: loop_var: service_dir_name