From 8b5168828af71075269f8d424820e1100f126e65 Mon Sep 17 00:00:00 2001
From: Erik Berg <openstack@slipsprogrammor.no>
Date: Mon, 9 Jan 2023 22:54:46 +0100
Subject: [PATCH] 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
---
 ansible/roles/dnf/tasks/main.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ansible/roles/dnf/tasks/main.yml b/ansible/roles/dnf/tasks/main.yml
index 1d9d3f310..41feff3ff 100644
--- a/ansible/roles/dnf/tasks/main.yml
+++ b/ansible/roles/dnf/tasks/main.yml
@@ -8,7 +8,8 @@
   loop: "{{ query('dict', dnf_config) }}"
   become: true
 
-- include_tasks: local-mirror.yml
+- name: Configure local mirror
+  include_tasks: local-mirror.yml
   when: dnf_use_local_mirror | bool
 
-- include_tasks: custom-repo.yml
+- import_tasks: custom-repo.yml