Pure Ansible solution would be as follows:
- name: ensure file exists
Ansible-lint will whine about the user, group and chmod not specified explicitly but it can be ignored with # noqa annotation since your objective is to specifically preserve the existing permissions.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!