Skip to content
Snippets Groups Projects
Commit 35f69ead authored by Erik Berg's avatar Erik Berg
Browse files

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
parent 18ff3195
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment