mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
dnf properly gpg check local packages based on param (#47455)
* dnf properly gpg check local packages based on param Fixes #43624 Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
0e3e646189
commit
079705f8da
2 changed files with 4 additions and 0 deletions
3
changelogs/fragments/dnf-localgpgcheck.yaml
Normal file
3
changelogs/fragments/dnf-localgpgcheck.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
minor_changes:
|
||||
- "dnf properly honor disable_gpg_check for local (on local disk of remote node) package installation"
|
|
@ -489,6 +489,7 @@ class DnfModule(YumDnf):
|
|||
|
||||
# Set whether to check gpg signatures
|
||||
conf.gpgcheck = not disable_gpg_check
|
||||
conf.localpkg_gpgcheck = not disable_gpg_check
|
||||
|
||||
# Don't prompt for user confirmations
|
||||
conf.assumeyes = True
|
||||
|
|
Loading…
Reference in a new issue