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

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