Files
hla_framework_bd/ansible/deploy-service.yml
T
Benjamin Labrecque 32be7ff472
Deploy bin / deploy (push) Successful in 2s
Deploy, build and restart MASTER / deploy (push) Successful in 4s
Deploy agebd python package / deploy (push) Successful in 2s
chore: deploy script for all services
2026-07-06 17:07:22 +02:00

21 lines
659 B
YAML

- 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