/
/
/
1---
2# Runner Services Role - Handlers
3
4- name: reload systemd
5 systemd:
6 daemon_reload: yes
7 become: yes
8
9- name: restart docker
10 systemd:
11 name: docker
12 state: restarted
13 become: yes
14
15- name: restart nfs mounts
16 shell: |
17 # Unmount if already mounted to avoid conflicts
18 if mountpoint -q "{{ item.local_path }}"; then
19 umount "{{ item.local_path }}" || true
20 fi
21 # Remount the NFS share
22 mount -t nfs -o {{ item.options }} {{ item.host }}:{{ item.nfs_path }} {{ item.local_path }}
23 loop: "{{ runner_nfs_mounts }}"
24 become: true
25
26- name: restart frigate
27 community.docker.docker_compose_v2:
28 project_src: "{{ frigate_config_dir }}"
29 state: present
30 recreate: "always"
31 when: frigate_enabled
32
33- name: restart immich
34 community.docker.docker_compose_v2:
35 project_src: "{{ immich_config_dir }}"
36 state: present
37 recreate: "always"
38 when: immich_enabled
39
40- name: restart forgejo
41 community.docker.docker_compose_v2:
42 project_src: "{{ forgejo_config_dir }}"
43 state: present
44 recreate: "always"
45 when: forgejo_enabled
46
47- name: restart stirling-pdf
48 community.docker.docker_compose_v2:
49 project_src: "{{ stirling_pdf_config_dir }}"
50 state: present
51 recreate: "always"
52 when: stirling_pdf_enabled
53
54- name: restart tandoor
55 community.docker.docker_compose_v2:
56 project_src: "{{ tandoor_config_dir }}"
57 state: present
58 recreate: "always"
59 when: tandoor_enabled
60
61- name: restart ghost
62 community.docker.docker_compose_v2:
63 project_src: "{{ ghost_config_dir }}"
64 state: present
65 recreate: "always"
66 when: ghost_enabled
67
68- name: restart runner services
69 include_tasks: restart-all-services.yml
70
71- name: validate runner deployment
72 include_tasks: health-checks.yml
73 tags: validation