- name: create touch-file.service template: src=touch-file.service.j2 dest=/etc/systemd/system/touch-file-{{ file|replace('/', '-') }}.service notify: systemd-daemon-reload - name: create touch-file.timer template: src=touch-file.timer.j2 dest=/etc/systemd/system/touch-file-{{ file|replace('/', '-') }}.timer notify: systemd-daemon-reload - name: enable touch-file.timer service: name=touch-file-{{ file|replace('/', '-') }}.timer state=started enabled=yes