From 464c502f95963b779f2cf4de68059d677fd50d9f Mon Sep 17 00:00:00 2001 From: Henry Finucane Date: Mon, 29 Sep 2014 18:55:34 -0700 Subject: [PATCH] dpkg does not take a --force-yes option --- lib/ansible/modules/packaging/os/apt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/apt.py b/lib/ansible/modules/packaging/os/apt.py index 06f96f3f1d5..3b5f6691de2 100644 --- a/lib/ansible/modules/packaging/os/apt.py +++ b/lib/ansible/modules/packaging/os/apt.py @@ -394,7 +394,7 @@ def install_deb(m, debs, cache, force, install_recommends, dpkg_options): if m.check_mode: options += " --simulate" if force: - options += " --force-yes" + options += " --force-all" cmd = "dpkg %s -i %s" % (options, " ".join(pkgs_to_install)) rc, out, err = m.run_command(cmd)