name tasks

master
neingeist 8 years ago
parent ede3979533
commit 56a520f40c

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

Loading…
Cancel
Save