dnf: improve task output readability

It's more informative to describe the tasks we are skipping by
adding a name section to the include_tasks. Otherwise it just
shows;

 TASK [dnf : include_tasks] *
 skipping: [controller-1]

The other include_tasks doesn't have a name section or a when clause
so switching to import_tasks.

Change-Id: Ie8d34a45aa4ebd0e2ea635208970acf18741aee5
This commit is contained in:
Erik Berg 2023-01-09 22:54:46 +01:00
parent ebd5799fd4
commit 8b5168828a
No known key found for this signature in database
GPG Key ID: 1182D19B0E5ED030

View File

@ -8,7 +8,8 @@
loop: "{{ query('dict', dnf_config) }}" loop: "{{ query('dict', dnf_config) }}"
become: true become: true
- include_tasks: local-mirror.yml - name: Configure local mirror
include_tasks: local-mirror.yml
when: dnf_use_local_mirror | bool when: dnf_use_local_mirror | bool
- include_tasks: custom-repo.yml - import_tasks: custom-repo.yml