0

What would be the ansible equivalent of

echo > /some/file/here

I don't want to resort to using shell:

Nor do I want to delete and recreate the file, just empty it in place.

The file already exists and will always exist so the "how to create an empty file" is not the same

hat
  • 1
  • 1
  • Does [How to truncate an existing and opened file using Ansible?](https://stackoverflow.com/questions/70621828/) answer your question? – U880D Jan 07 '22 at 13:24

0 Answers0