ansible/ansible — pull request #8276 by btisdall (2014-07-24 11:05:56+00:00)
Title: Honour recurse=yes for directory removal

The [documentation](http://docs.ansible.com/file_module.html) says that recursive directory removal should work, but the existing logic only works for directory creation because an exception is thrown unless state=directory. This PR fixes that while ensuring that recursive removals fail when the previous state is anything other than "directory".