ansible/ansible-modules-core — pull request #556 by redbaron (2014-12-23 11:03:21+00:00)
Title: Fix regression  introduced by #9518

https://github.com/ansible/ansible/issues/9518 issue fix added a check for the case when path is already exsits and it is not a directory. This patch extends check to treat "symlink to directory" case as regular directory for the purpose of this check.

In the nutshell it fixes following case:
```
- hosts: all
gather_facts: no
tasks:
# prepare
- file: path=/tmp/dir state=directory
- file: path=/tmp/link src=/tmp/dir state=link

# master branch breaks on following,
- file: path=/tmp/link state=directory follow=yes
```