name tasks
parent
ede3979533
commit
56a520f40c
@ -1,12 +1,15 @@
|
|||||||
- template:
|
- name: create touch-file.service
|
||||||
|
template:
|
||||||
src=touch-file.service.j2
|
src=touch-file.service.j2
|
||||||
dest=/etc/systemd/system/touch-file-{{ file|replace('/', '-') }}.service
|
dest=/etc/systemd/system/touch-file-{{ file|replace('/', '-') }}.service
|
||||||
notify: systemd-daemon-reload
|
notify: systemd-daemon-reload
|
||||||
|
|
||||||
- template:
|
- name: create touch-file.timer
|
||||||
|
template:
|
||||||
src=touch-file.timer.j2
|
src=touch-file.timer.j2
|
||||||
dest=/etc/systemd/system/touch-file-{{ file|replace('/', '-') }}.timer
|
dest=/etc/systemd/system/touch-file-{{ file|replace('/', '-') }}.timer
|
||||||
notify: systemd-daemon-reload
|
notify: systemd-daemon-reload
|
||||||
|
|
||||||
- service:
|
- name: enable touch-file.timer
|
||||||
|
service:
|
||||||
name=touch-file-{{ file|replace('/', '-') }}.timer state=started enabled=yes
|
name=touch-file-{{ file|replace('/', '-') }}.timer state=started enabled=yes
|
||||||
|
Loading…
Reference in New Issue