Replaced {{ systemctl_id | get_service_script_path( by systemctl_script_exec

This commit is contained in:
2025-08-19 10:51:51 +02:00
parent 1082caddae
commit da01305cac
20 changed files with 32 additions and 26 deletions

View File

@@ -9,15 +9,15 @@
block:
- name: "render template"
template:
src: "{{ service_src }}"
dest: "{{ [systemctl_script_dir, (service_src | basename | regex_replace('\\.j2$', ''))] | path_join }}"
src: "{{ systemctl_script_src }}"
dest: "{{ [systemctl_script_dir, (systemctl_script_src | basename | regex_replace('\\.j2$', ''))] | path_join }}"
mode: "0755"
when: service_src.endswith('.j2')
when: systemctl_script_src.endswith('.j2')
- name: "copy raw file"
copy:
src: "{{ service_src }}"
dest: "{{ [systemctl_script_dir, (service_src | basename)] | path_join }}"
src: "{{ systemctl_script_src }}"
dest: "{{ [systemctl_script_dir, (systemctl_script_src | basename)] | path_join }}"
mode: "0755"
when: not service_src.endswith('.j2')
when: not systemctl_script_src.endswith('.j2')
when: systemctl_copy_files | bool