From 7fee8a78c92a85c6f670faf45a2e5aa9aba83dc5 Mon Sep 17 00:00:00 2001 From: toshihisa Date: Wed, 16 Mar 2016 00:55:50 +0900 Subject: [PATCH] One more bug yum non English locales https://github.com/ansible/ansible-modules-core/commit/d7fac82f97c153af08dbea2b2ae9718b19abeb8a --- lib/ansible/modules/packaging/os/yum.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/yum.py b/lib/ansible/modules/packaging/os/yum.py index 2c7df6ca53d..9610b8e46d8 100644 --- a/lib/ansible/modules/packaging/os/yum.py +++ b/lib/ansible/modules/packaging/os/yum.py @@ -657,7 +657,8 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos): changed = True - rc, out, err = module.run_command(cmd) + lang_env = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C') + rc, out, err = module.run_command(cmd, environ_update=lang_env) if (rc == 1): for spec in items: