21 lines
664 B
YAML
21 lines
664 B
YAML
- name: Dynamic HLA Microservices Deployer
|
|
hosts: hla-dev
|
|
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: tasks/deploy_single_service.yml
|
|
loop: "{{ changed_services_raw.split() }}"
|
|
loop_control:
|
|
loop_var: service_dir_name |