How to recursively set directory and file permissions

If I do this:

file: dest=/foo/bar/somedir owner=root group=apache mode=0775 recurse=yes

It recursively sets the owner, group, and permissions to 0775 on all directories and files in that path. But I want to set directories to 0775, and files to 0644. Is there some way to make ansible do this?

I don't think you can do it in one call.