Pass allow_unauthenticated when installing a deb directly - allowing unauthenticated dependencies (#58771)
* Pass allow_unauthenticated when installing a deb directly - allowing unauthenticated dependencies. * Add changelog for ansible/ansible#58771
This commit is contained in:
parent
644eead954
commit
ec35cbc437
2 changed files with 3 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- apt - fixed issue where allow_unauthenticated did not apply to dependencies when installing a deb directly
|
|
@ -750,6 +750,7 @@ def install_deb(m, debs, cache, force, install_recommends, allow_unauthenticated
|
||||||
if deps_to_install:
|
if deps_to_install:
|
||||||
(success, retvals) = install(m=m, pkgspec=deps_to_install, cache=cache,
|
(success, retvals) = install(m=m, pkgspec=deps_to_install, cache=cache,
|
||||||
install_recommends=install_recommends,
|
install_recommends=install_recommends,
|
||||||
|
allow_unauthenticated=allow_unauthenticated,
|
||||||
dpkg_options=expand_dpkg_options(dpkg_options))
|
dpkg_options=expand_dpkg_options(dpkg_options))
|
||||||
if not success:
|
if not success:
|
||||||
m.fail_json(**retvals)
|
m.fail_json(**retvals)
|
||||||
|
|
Loading…
Add table
Reference in a new issue