From 5b9eebb213ce30c286151358e222541a6b271046 Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Wed, 15 Jul 2026 13:38:36 +0200 Subject: [PATCH] fix: cicd --- .../playbooks/deploy-and-restart-modified-services.yml | 3 +++ ansible/tasks/service/service-deploy-and-restart.yml | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/ansible/playbooks/deploy-and-restart-modified-services.yml b/ansible/playbooks/deploy-and-restart-modified-services.yml index 5a090cf..3e9719b 100644 --- a/ansible/playbooks/deploy-and-restart-modified-services.yml +++ b/ansible/playbooks/deploy-and-restart-modified-services.yml @@ -22,3 +22,6 @@ loop: "{{ changed_services_raw.split() }}" loop_control: loop_var: service_name_lower + extended: yes + debugger: always + diff --git a/ansible/tasks/service/service-deploy-and-restart.yml b/ansible/tasks/service/service-deploy-and-restart.yml index e8e4555..c0b246a 100644 --- a/ansible/tasks/service/service-deploy-and-restart.yml +++ b/ansible/tasks/service/service-deploy-and-restart.yml @@ -1,4 +1,13 @@ --- +# TODO: remove +- name: "DEBUG: Iteration tracker" + ansible.builtin.debug: + msg: + - "Current Index: {{ ansible_loop.index }}" # 1-based index (e.g., 1, 2, 3) + - "Is First: {{ ansible_loop.first }}" # True/False + - "Is Last: {{ ansible_loop.last }}" # True/False + - "Total Length: {{ ansible_loop.length }}" # Total item count + - name: Initialize service name ansible.builtin.set_fact: # Uses preferred_service_name_lower if defined in vars, otherwise falls back to the CLI extra-vars