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
|
@ -1,2 +1,8 @@
|
||||||
ansible_port: "{{ vault_node001.ansible_port }}"
|
ansible_port: "{{ vault_node001.ansible_port }}"
|
||||||
ansible_user: "{{ vault_node001.ansible_user }}"
|
ansible_user: "{{ vault_node001.ansible_user }}"
|
||||||
|
host_backup:
|
||||||
|
backup:
|
||||||
|
hc_uid: "{{ vault_node001.backup.hc_uid }}"
|
||||||
|
uptime_kuma_token: "{{ vault_node001.backup.uptime_kuma_token }}"
|
||||||
|
volumes:
|
||||||
|
- minecraft-2_data
|
||||||
|
|
|
@ -2,7 +2,12 @@
|
||||||
- name: Run roles for node001
|
- name: Run roles for node001
|
||||||
hosts: node001
|
hosts: node001
|
||||||
roles:
|
roles:
|
||||||
- common
|
- role: common
|
||||||
|
tags: [always]
|
||||||
|
- role: backup
|
||||||
|
tags: [backup]
|
||||||
|
- role: caddy
|
||||||
|
tags: [caddy, reverse-proxy, webserver]
|
||||||
|
|
||||||
- role: mailcow
|
- role: mailcow
|
||||||
tags: [mailcow, mail, communication]
|
tags: [mailcow, mail, communication]
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
dest: "{{ service_path }}"
|
dest: "{{ service_path }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: Copy the system service
|
- name: Template the system service
|
||||||
ansible.builtin.copy:
|
ansible.builtin.template:
|
||||||
src: healthcheck@.service
|
src: healthcheck@.service.j2
|
||||||
dest: /etc/systemd/system/healthcheck@.service
|
dest: /etc/systemd/system/healthcheck@.service
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
become: true
|
become: true
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=simple
|
||||||
ExecStart=/usr/bin/docker compose run --rm %i
|
ExecStart=/usr/bin/docker compose run --rm %i
|
||||||
WorkingDirectory={{ service_path }}
|
WorkingDirectory={{ service_path }}
|
||||||
|
RuntimeMaxSec=300
|
Reference in a new issue