--- - name: "add cron file" template: src: "stat.cron" dest: "{{ OS.cron.dirs.custom }}/stat" owner: root group: root mode: u=rwx,g=rx,o=rx - name: "restart {{ OS.cron.name }} service" service: name: "{{ OS.cron.name }}" state: restarted