|
|
@@ -1,7 +1,7 @@
|
|
|
- name: Upload script for schedule-run
|
|
|
- ansible.builtin.copy:
|
|
|
- src: schedule-run.sh
|
|
|
- dest: "{{ app_deploy_target }}/scripts/worker-{{ zone_name }}-{{ worker_name }}.sh"
|
|
|
+ ansible.builtin.template:
|
|
|
+ src: schedule-run.sh.j2
|
|
|
+ dest: "{{ app_deploy_target }}/scripts/worker-schedule-run.sh"
|
|
|
mode: "0555"
|
|
|
|
|
|
- name: Stop schedule-run
|
|
|
@@ -18,10 +18,10 @@
|
|
|
- "{{ app_deploy_target }}:{{ app_deploy_target }}:z"
|
|
|
workdir: "{{ app_deploy_target }}"
|
|
|
# auto_remove: true
|
|
|
- generate_systemd:
|
|
|
- path: "{{ app_deploy_target | dirname }}/systemd"
|
|
|
- container_prefix: mint
|
|
|
- names: true
|
|
|
- restart_policy: always
|
|
|
- stop_timeout: 120
|
|
|
+ # generate_systemd:
|
|
|
+ # path: "{{ app_deploy_target | dirname }}/systemd"
|
|
|
+ # container_prefix: mint
|
|
|
+ # names: true
|
|
|
+ # restart_policy: always
|
|
|
+ # stop_timeout: 120
|
|
|
# TODO timer
|