mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #3762 from grosskur/fix-apt-noninteractive
apt: Run remove commands noninteractively
This commit is contained in:
commit
cb9c3a8bd7
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ def remove(m, pkgspec, cache, purge=False):
|
||||||
purge = '--purge'
|
purge = '--purge'
|
||||||
else:
|
else:
|
||||||
purge = ''
|
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:
|
if m.check_mode:
|
||||||
m.exit_json(changed=True)
|
m.exit_json(changed=True)
|
||||||
|
|
Loading…
Reference in a new issue