mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 06:11:26 -07:00
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. |
||
---|---|---|
.. | ||
__init__.py | ||
acl.py | ||
archive.py | ||
assemble.py | ||
blockinfile.py | ||
copy.py | ||
fetch.py | ||
file.py | ||
find.py | ||
ini_file.py | ||
lineinfile.py | ||
patch.py | ||
replace.py | ||
stat.py | ||
synchronize.py | ||
tempfile.py | ||
template.py | ||
unarchive.py | ||
xattr.py |