touch always changes the file, as it updates the timestamp (that's okay, we just don't need that for a logfile)
copy would overwrite the contents everytime so force=no
but with force=no copy would not check (and fix) the permissions of a file
so we better make the logfile creation in two phases: create if does not exist, and fix the ownership and permissions if required
This is not the best solution, as file state=present would be better, but as the github issues get closed with no solution just workarounds, we have to work-around. :)
So there's this problem:
This is not the best solution, as file state=present would be better, but as the github issues get closed with no solution just workarounds, we have to work-around. :)
Best regards,
Peter