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: I4d050312410951847413c728165a74ce26fd77a0
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
Dmitriy Rabotyagov
2025-09-01 12:32:15 +02:00
parent 46b7f5114a
commit 97e98cffe3

View File

@@ -79,7 +79,15 @@
trusted: "{{ item.trusted | default(omit) }}"
types: "{{ item.types | default(omit) }}"
uris: "{{ item.uris | default(omit) }}"
with_items: "{{ rabbitmq_repo + rabbitmq_erlang_repo }}"
loop: "{{ rabbitmq_repo + rabbitmq_erlang_repo }}"
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: deb822_repos
- name: Update apt repositories when config is changed