From 1da6712dfcd733fa7a31551dff7d77093616afcf Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 1 Sep 2025 12:18:53 +0200 Subject: [PATCH] Use loop label for deb822_repository The module has quite massive output due to included GPG key into the structure, which makes it barely readable. Using loop label on the module will limit output to necessary set of arguments. Change-Id: I9833f9db7cc6b5bd84190e895e10d47433e5078b Signed-off-by: Dmitriy Rabotyagov --- tasks/frr_install_apt.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tasks/frr_install_apt.yml b/tasks/frr_install_apt.yml index 7d4e58b..ba9fd6e 100644 --- a/tasks/frr_install_apt.yml +++ b/tasks/frr_install_apt.yml @@ -55,7 +55,15 @@ trusted: "{{ item.trusted | default(omit) }}" types: "{{ item.types | default(omit) }}" uris: "{{ item.uris | default(omit) }}" - with_items: "{{ frr_repos }}" + loop: "{{ frr_repos }}" + loop_control: + label: "{{ loop_label | to_json }}" + vars: + loop_label: + name: "{{ item.name }}" + uris: "{{ item.uris | default('') }}" + state: "{{ item.state | default('present') }}" + suites: "{{ item.suites | default('') }}" register: _manage_apt_repositories - name: Update Apt cache # noqa: no-handler