- name: ngenix archive logs script ansible.builtin.copy: src: templates/ngenix-gunzip-light dest: /data/ngenix/ngenix-gunzip-light mode: 0700 diff: true # not absolutely necessary but won't harm notify: restart fluent-bit - name: ngenix archive logs cron job ansible.builtin.cron: name: "ngenix archive logs" minute: "*" # no override here - this is not a tail file job: "/data/ngenix/ngenix-gunzip-light >> /var/log/ngenix-gunzip-light.log 2>&1" diff: true # not absolutely necessary but won't harm notify: restart fluent-bit