Merge pull request #3762 from grosskur/fix-apt-noninteractive

apt: Run remove commands noninteractively
This commit is contained in:
Michael DeHaan 2013-08-06 13:41:07 -07:00
commit cb9c3a8bd7

View file

@ -218,7 +218,7 @@ def remove(m, pkgspec, cache, purge=False):
purge = '--purge'
else:
purge = ''
cmd = "%s -q -y %s remove %s" % (APT_GET_CMD, purge,packages)
cmd = "%s %s -q -y %s %s remove %s" % (APT_ENVVARS, APT_GET_CMD, DPKG_OPTIONS, purge, packages)
if m.check_mode:
m.exit_json(changed=True)