fix: add new service ansible/cicd
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user