Edit file File name : ndn-procwatch Content :# Ansible managed /var/log/procwatch.log { daily missingok rotate 14 compress copytruncate notifempty create 640 root root prerotate /bin/sleep $((RANDOM%1000)) endscript } Save