ansible/ansible — pull request #1079 by mklambert (2012-09-24 19:09:52+00:00)
Title: Replace os.access with stat calls for checking execute bit

Per issue 1057, the function ``is_executable`` has been added to lib/ansible/utils.py and lib/ansible/module_common.py. This function replaces calls to os.access for testing the presence of the executable bit due to problems with that test on certain platforms (AIX & Solaris). The version in modules_common.py has been added as a method to the AnsibleModule class.

The two os.access/execute-bit tests already present in the code have been replaced with calls to ``is_executable``