1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

before we run the actual module/command - emit what that would be to the logs

This commit is contained in:
Seth Vidal 2012-04-02 13:29:12 -04:00
parent 08163c6251
commit 04aecdcf34

View file

@ -357,6 +357,12 @@ class Runner(object):
cmd = "%s %s" % (remote_module_path, argsfile)
else:
cmd = " ".join([str(x) for x in [remote_module_path, async_jid, async_limit, async_module, argsfile]])
# log command as the full command not as the path to args file - helps with debugging
msg = '%s: "%s"' % (self.module_name, args)
conn.exec_command('/usr/bin/logger -t ansible -p auth.info "%s"' % msg, None)
res, err = self._exec_command(conn, cmd, tmp, sudoable=True)
return ( res, err, client_executed_str )