Line 0
Link Here
|
|
|
1 |
--- lib/ansible/modules/packaging/os/pkgng.py.orig 2018-10-24 02:17:26 UTC |
2 |
+++ lib/ansible/modules/packaging/os/pkgng.py |
3 |
@@ -201,13 +201,13 @@ def install_packages(module, pkgng_path, |
4 |
|
5 |
# This environment variable skips mid-install prompts, |
6 |
# setting them to their default values. |
7 |
- batch_var = 'env BATCH=yes' |
8 |
+ batch_var = 'env BATCH=yes ASSUME_ALWAYS_YES=yes' |
9 |
|
10 |
if not module.check_mode and not cached: |
11 |
if old_pkgng: |
12 |
- rc, out, err = module.run_command("%s %s update" % (pkgsite, pkgng_path)) |
13 |
+ rc, out, err = module.run_command("%s %s %s update" % (batch_var, pkgsite, pkgng_path)) |
14 |
else: |
15 |
- rc, out, err = module.run_command("%s %s update" % (pkgng_path, dir_arg)) |
16 |
+ rc, out, err = module.run_command("%s %s %s update" % (batch_var, pkgng_path, dir_arg)) |
17 |
if rc != 0: |
18 |
module.fail_json(msg="Could not update catalogue") |
19 |
|