From 35f69ead1e62aa08c12d980a6e9ffde2e89a64b1 Mon Sep 17 00:00:00 2001
From: Erik Berg <openstack@slipsprogrammor.no>
Date: Tue, 18 Oct 2022 18:39:43 +0200
Subject: [PATCH] Use dnf module to get rid of warning

Ansible throws a warning on this command;
[WARNING]: Consider using the dnf module rather than running 'dnf'

Change-Id: Icc2aac744837676fe6b48fad44187ef750039d7a
---
 ansible/seed-vm-provision.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ansible/seed-vm-provision.yml b/ansible/seed-vm-provision.yml
index ea547fd71..34ff05891 100644
--- a/ansible/seed-vm-provision.yml
+++ b/ansible/seed-vm-provision.yml
@@ -16,7 +16,9 @@
     # Until the role handles it, install it using the --allowerasing option
     # which will remove coreutils-single.
     - name: Ensure coreutils package is installed
-      command: "dnf install coreutils -y --allowerasing"
+      dnf:
+        name: coreutils
+        allowerasing: true
       become: True
       when:
         - ansible_facts.os_family == 'RedHat'