Add backup to node001 and timeout to healthcheck
This commit is contained in:
parent
03f83ef7fd
commit
cad06cae96
4 changed files with 17 additions and 5 deletions
roles/healthcheck
|
@ -27,9 +27,9 @@
|
|||
dest: "{{ service_path }}"
|
||||
mode: "0755"
|
||||
|
||||
- name: Copy the system service
|
||||
ansible.builtin.copy:
|
||||
src: healthcheck@.service
|
||||
- name: Template the system service
|
||||
ansible.builtin.template:
|
||||
src: healthcheck@.service.j2
|
||||
dest: /etc/systemd/system/healthcheck@.service
|
||||
mode: "0644"
|
||||
become: true
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Service]
|
||||
Type=oneshot
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/docker compose run --rm %i
|
||||
WorkingDirectory={{ service_path }}
|
||||
RuntimeMaxSec=300
|
Reference in a new issue