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
pull/59097/head
Kevin Dwyer 5 years ago committed by Martin Krizek
parent 644eead954
commit ec35cbc437

@ -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…
Cancel
Save