mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Replaced {{ systemctl_id | get_service_script_path( by systemctl_script_exec
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user