mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-27 05:58:50 +00:00
pkgng: fix #3428; install from local file
Fixes a bug in which the module reported failure when installing from a local (to the target host) file path. Fixes #3428
This commit is contained in:
parent
75212ad73d
commit
5f94eac41f
3 changed files with 45 additions and 2 deletions
|
|
@ -136,6 +136,28 @@
|
|||
- pkgng_example4.changed
|
||||
- not pkgng_example4_idempotent.changed
|
||||
|
||||
##
|
||||
## pkgng - example - Install package from local file
|
||||
- name: Create test package
|
||||
import_tasks: create-outofdate-pkg.yml
|
||||
|
||||
- name: Install test package from local file
|
||||
pkgng:
|
||||
name: '{{ pkgng_test_outofdate_pkg_path }}'
|
||||
register: pkgng_example_localfile
|
||||
|
||||
- name: Remove test package
|
||||
pkgng:
|
||||
name: '{{ pkgng_test_pkg_name }}'
|
||||
state: absent
|
||||
register: pkgng_example_localfile_cleanup
|
||||
|
||||
- name: Ensure pkgng installs package from local file
|
||||
assert:
|
||||
that:
|
||||
- pkgng_example_localfile.changed
|
||||
- pkgng_example_localfile_cleanup.changed
|
||||
|
||||
##
|
||||
## pkgng - example - Install multiple packages in one command
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue