From 0938d4d89a01927e7ed51d0e43c8997bfaace1d0 Mon Sep 17 00:00:00 2001 From: Ben Ritcey Date: Wed, 15 May 2013 18:14:31 -0400 Subject: [PATCH] Allow the remote MD5 checks to be run via sudo --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index ad78895275..0f9906bb31 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -638,7 +638,7 @@ class Runner(object): cmd = " || ".join(md5s) cmd = "%s; %s || (echo \"${rc} %s\")" % (test, cmd, path) - data = self._low_level_exec_command(conn, cmd, tmp, sudoable=False) + data = self._low_level_exec_command(conn, cmd, tmp, sudoable=True) data2 = utils.last_non_blank_line(data['stdout']) try: return data2.split()[0]