dnf: allow to operate on file paths (#51080)

Fixes #50843
This commit is contained in:
Martin Krizek
2019-01-21 23:20:27 +01:00
committed by ansibot
parent e3f8e05ecb
commit 9ec9f18b13
3 changed files with 37 additions and 0 deletions

View File

@@ -664,3 +664,24 @@
state: absent
# end test case where disable_excludes is supported
- name: Test "dnf install /usr/bin/vi"
block:
- name: Clean vim-minimal
dnf:
name: vim-minimal
state: absent
- name: Install vim-minimal by specifying "/usr/bin/vi"
dnf:
name: /usr/bin/vi
state: present
- name: Get rpm output
command: rpm -q vim-minimal
register: rpm_output
- name: Check installation was successful
assert:
that:
- "'vim-minimal' in rpm_output.stdout"