mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
dpkg does not take a --force-yes option
This commit is contained in:
parent
cc6cc6e302
commit
464c502f95
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ def install_deb(m, debs, cache, force, install_recommends, dpkg_options):
|
||||||
if m.check_mode:
|
if m.check_mode:
|
||||||
options += " --simulate"
|
options += " --simulate"
|
||||||
if force:
|
if force:
|
||||||
options += " --force-yes"
|
options += " --force-all"
|
||||||
|
|
||||||
cmd = "dpkg %s -i %s" % (options, " ".join(pkgs_to_install))
|
cmd = "dpkg %s -i %s" % (options, " ".join(pkgs_to_install))
|
||||||
rc, out, err = m.run_command(cmd)
|
rc, out, err = m.run_command(cmd)
|
||||||
|
|
Loading…
Reference in a new issue