Ansible can't recursively delete a directory So, I am trying to recursively delete a directory with all files/folders inside.
I tried:

  - name: Cleaning up
    file:
      state: absent
      path: /tmp/myfolder/


But the directory did not get deleted. Is there any force/recursive parameter I can add? What am I missing?
You may find the following format to be helpful:

- name: Recursively change ownership of a directory  
file:  
  path: /etc/foo
  state: directory
  recurse: yes
  owner: foo
  group: foo