Hi,
I have yet to wrap my head around the way Ansible does some things.
I have the following task using the find module:
- name: Find existing desktop menu files on target system
  ansible.builtin.find:
    paths: /var/lib/flatpak/app
    recurse: true
    patterns: 'org.darktable.Darktable.desktop'
  register: find_result
I included a little debug task to see what this returns:
- name: Show results
  ansible.builtin.debug:
    var: find_result
How can I tell Ansible to simply delete the resulting files ? (Adding a rule like “if there are any” to avoid errors when repeating the play?)
Thanks & cheers !