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 <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
Dmitriy Rabotyagov
2025-09-01 12:18:53 +02:00
parent 2588129667
commit 1da6712dfc

View File

@@ -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