fix: add new service ansible/cicd
Deploy bin / deploy (push) Successful in 2s
Deploy, build and restart MASTER / deploy (push) Successful in 2s
Deploy agebd python package / deploy (push) Successful in 4s

This commit is contained in:
Benjamin Labrecque
2026-07-07 14:06:52 +02:00
parent 2ac3ccb159
commit 84691e6a9d
@@ -32,13 +32,13 @@
- 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
export XDG_RUNTIME_DIR: /run/user/$(id -u)
# 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_user_id }}"
chdir: "{{ svc_current_dir }}/systemd"