ansible/ansible — pull request #2247 by chrishoffman (2013-03-01 02:10:07+00:00)
Title: Adding run_in_check_mode parameter to run_command helper

In using commands quite a bit in modules, I kept on writing boilerplate check mode logic to only run certain commands when check_mode is enabled. This moves this logic into the core helper function.