community.general/lib/ansible/modules/files
Dag Wieers a657572240 Removing an non-existing directory complains (#19014)
The following playbook:

```yaml
- hosts: localhost
  tasks:
  - file:
      path: /tmp/non-existing-foo-bar
      state: absent
      recurse: yes
```

causes this error:

```
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "recurse option requires state to be 'directory'", "path": "/tmp/non-existing-foo-bar", "state": "absent"}
```

The included fix ensures that when recurse is added, we no longer assume
it is a file, but accept that it is a directory.
2017-01-27 14:58:31 -08:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
acl.py Consistent path attribute for file-related modules 2017-01-13 15:49:42 -05:00
archive.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
assemble.py Resolving differences in core modules post-merge 2016-12-08 11:25:36 -05:00
blockinfile.py Consistent path attribute for file-related modules 2017-01-13 15:49:42 -05:00
copy.py Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00
fetch.py Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00
file.py Removing an non-existing directory complains (#19014) 2017-01-27 14:58:31 -08:00
find.py Fix code-blocks to use correct syntax highlighting 2017-01-08 09:18:45 -08:00
ini_file.py minor doc fix 2017-01-17 10:16:32 -05:00
lineinfile.py Correct typos. (#20490) 2017-01-20 08:03:49 -05:00
patch.py files/patch: improve examples (#20463) 2017-01-19 17:13:09 +00:00
replace.py Consistent path attribute for file-related modules 2017-01-13 15:49:42 -05:00
stat.py Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00
synchronize.py Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00
tempfile.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
template.py Fix typo in my example (#20293) 2017-01-16 14:12:34 +00:00
unarchive.py Fix infrequent PEP 8 issues. 2017-01-27 14:06:21 -08:00
xattr.py Consistent path attribute for file-related modules 2017-01-13 15:49:42 -05:00