diff --git a/lib/ansible/modules/extras/packaging/os/portage.py b/lib/ansible/modules/extras/packaging/os/portage.py index 85027bfc79b..d38062e47e5 100644 --- a/lib/ansible/modules/extras/packaging/os/portage.py +++ b/lib/ansible/modules/extras/packaging/os/portage.py @@ -335,6 +335,7 @@ def cleanup_packages(module, packages): def run_emerge(module, packages, *args): args = list(args) + args.append('--ask=n') if module.check_mode: args.append('--pretend')