mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
a657572240
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. |
||
---|---|---|
.. | ||
ansible |