From 786432d6bdb7ef5a62755607aea38d8015d2122c Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 23 Oct 2024 22:26:26 +0200 Subject: [PATCH] improve loop verbosity --- playbooks/apps/bin.yaml | 4 ++++ roles/docker/tasks/main.yaml | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/playbooks/apps/bin.yaml b/playbooks/apps/bin.yaml index 93d3f87..b9fdb24 100644 --- a/playbooks/apps/bin.yaml +++ b/playbooks/apps/bin.yaml @@ -10,6 +10,8 @@ mode: preserve with_fileglob: - files/bin/* + loop_control: + label: "{{ item | basename }}" - name: Template bin files ansible.builtin.template: src: "{{ item }}" @@ -17,6 +19,8 @@ mode: preserve with_fileglob: - templates/bin/*.j2 + loop_control: + label: "{{ item | basename }}" vars: ghost_db_password: !vault | $ANSIBLE_VAULT;1.1;AES256 diff --git a/roles/docker/tasks/main.yaml b/roles/docker/tasks/main.yaml index 5ed6087..6ea4bf8 100644 --- a/roles/docker/tasks/main.yaml +++ b/roles/docker/tasks/main.yaml @@ -12,6 +12,8 @@ with_fileglob: - files/{{ docker_app_name }}/* - files/{{ docker_app_name }}/.* + loop_control: + label: "{{ item | basename }}" notify: - Restart service - name: Write templates for {{ docker_app_name }} @@ -22,9 +24,11 @@ with_fileglob: - templates/{{ docker_app_name }}/*.j2 - templates/{{ docker_app_name }}/.*.j2 + loop_control: + label: "{{ item | basename }}" notify: - Restart service -- name: Flush handlers for {{ docker_app_name }} +- name: Flush handlers ansible.builtin.meta: flush_handlers - name: Ensure service is started {{ docker_app_name }} community.docker.docker_compose_v2: