diff options
author | Matthew Gamble <git@matthewgamble.net> | 2016-12-20 14:17:47 +1100 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2016-12-20 09:47:25 -0500 |
commit | 8292cadc7fe0c6d9e6f483181aee74431b9bbb4a (patch) | |
tree | 3ab331936ab5011bcf3869142019ff7ba2550b5b | |
parent | c3c4ae87dda2aeff708bf0b2c7af0911228b1610 (diff) | |
download | ansible-8292cadc7fe0c6d9e6f483181aee74431b9bbb4a.tar.gz |
Tell pacman not to display progress bars
Displaying progress bars is not recommended for any scripted usage of
pacman, such as the ansible pacman module.
-rw-r--r-- | lib/ansible/modules/packaging/os/pacman.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ansible/modules/packaging/os/pacman.py b/lib/ansible/modules/packaging/os/pacman.py index 1642f3ed60..c20b97c4ad 100644 --- a/lib/ansible/modules/packaging/os/pacman.py +++ b/lib/ansible/modules/packaging/os/pacman.py @@ -223,7 +223,7 @@ def remove_packages(module, pacman_path, packages): if not installed: continue - cmd = "%s -%s %s --noconfirm" % (pacman_path, args, package) + cmd = "%s -%s %s --noconfirm --noprogressbar" % (pacman_path, args, package) rc, stdout, stderr = module.run_command(cmd, check_rc=False) if rc != 0: @@ -260,7 +260,7 @@ def install_packages(module, pacman_path, state, packages, package_files): to_install_repos.append(package) if to_install_repos: - cmd = "%s -S %s --noconfirm --needed" % (pacman_path, " ".join(to_install_repos)) + cmd = "%s -S %s --noconfirm --noprogressbar --needed" % (pacman_path, " ".join(to_install_repos)) rc, stdout, stderr = module.run_command(cmd, check_rc=False) if rc != 0: @@ -269,7 +269,7 @@ def install_packages(module, pacman_path, state, packages, package_files): install_c += len(to_install_repos) if to_install_files: - cmd = "%s -U %s --noconfirm --needed" % (pacman_path, " ".join(to_install_files)) + cmd = "%s -U %s --noconfirm --noprogressbar --needed" % (pacman_path, " ".join(to_install_files)) rc, stdout, stderr = module.run_command(cmd, check_rc=False) if rc != 0: module.fail_json(msg="failed to install %s: %s" % (" ".join(to_install_files), stderr)) |