ansible/ansible — pull request #803 by willthames (2012-08-08 06:15:21+00:00)
Title: chmod needs more specific arguments to work with sudo_user

Basically if umask is set to something like 0007 then chmod +r and chmod +x
are not the same as chmod a+r and chmod a+x

Using os.path.basename rather than source.split should make ansible more
portable (and even if never ported, more readable)