chore: deploy script for all services
Deploy bin / deploy (push) Successful in 3s
Deploy, build and restart MASTER / deploy (push) Successful in 6s
Deploy agebd python package / deploy (push) Successful in 1s

This commit is contained in:
Benjamin Labrecque
2026-07-07 08:40:06 +02:00
parent f87b8d6500
commit 7802d88b09
+10 -8
View File
@@ -23,13 +23,15 @@
regexp: '\{\{\s*agebd_env\s*\}\}'
replace: "{{ agebd_env }}"
- name: "[{{ service_dir_name }}] Reload, enable, and restart systemd user space"
ansible.builtin.systemd:
name: "{{ svc_current_dir }}/systemd/{{ service_unit_name }}"
state: restarted
enabled: yes
force: yes
scope: user
daemon_reload: yes
- name: "[{{ service_dir_name }}] Restart Systemd Service using Relative Paths"
ansible.builtin.shell: |
# 1. Tell systemd to link the service file into its registry relatively
systemctl --user link "./{{ service_unit_name }}"
systemctl --user daemon-reload
systemctl --user enable "{{ service_unit_name }}"
systemctl --user restart "{{ service_unit_name }}"
args:
chdir: "{{ svc_current_dir }}/systemd"
environment:
XDG_RUNTIME_DIR: "/run/user/{{ ansible_effective_user_id }}"