feat(roles/coolify): added traefik watchdog

This commit is contained in:
ITQ committed 2026-10-24 13:01:23 +03:00
1 parent 2d9a35a26c
commit 4ff600e5b4
7 files changed
+131 -1

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
---
- name: Check for Coolify proxy watchdog timer
become: true
ansible.builtin.stat:
path: /etc/systemd/system/coolify-proxy-watchdog.timer
register: _coolify_watchdog_timer
- name: Disable Coolify proxy watchdog timer
become: true
ansible.builtin.systemd:
name: coolify-proxy-watchdog.timer
enabled: false
state: stopped
when: _coolify_watchdog_timer.stat.exists
- name: Remove Coolify proxy watchdog files
become: true
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- /usr/local/sbin/coolify-proxy-watchdog
- /etc/systemd/system/coolify-proxy-watchdog.service
- /etc/systemd/system/coolify-proxy-watchdog.timer
register: _coolify_watchdog_removed
when: coolify_state == 'absent'
- name: Reload systemd after removing Coolify proxy watchdog
become: true
ansible.builtin.systemd:
daemon_reload: true
when:
- coolify_state == 'absent'
- _coolify_watchdog_removed is changed