Skip to content

Commit 16baee5

Browse files
committed
Add reboot cron to recover dead service - Fixes #15
1 parent 7907a9f commit 16baee5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tasks/remove_linux.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@
7676
name: "{{ service['user'] }}"
7777
state: absent
7878
become: true
79+
80+
- name: Remove reboot cron for runner
81+
ansible.builtin.cron:
82+
name: "Ensure fully startet runner"
83+
state: absent

tasks/runner_linux.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,9 @@
155155
state: "started"
156156
enabled: true
157157
become: true
158+
159+
- name: Add reboot cron for runner
160+
ansible.builtin.cron:
161+
name: "Ensure fully startet runner"
162+
special_time: reboot
163+
job: "systemctl status github-runner | grep dead && systemctl restart github-runner"

0 commit comments

Comments
 (0)