mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-26 21:45:20 +02:00
Solved path bug
This commit is contained in:
parent
73b7d2728e
commit
34d771266a
@ -12,7 +12,7 @@ def get_service_script_path(systemctl_id, script_type):
|
|||||||
if not systemctl_id or not script_type:
|
if not systemctl_id or not script_type:
|
||||||
raise ValueError("Both systemctl_id and script_type are required")
|
raise ValueError("Both systemctl_id and script_type are required")
|
||||||
|
|
||||||
return f"/opt/scripts/{systemctl_id}/script.{script_type}"
|
return f"/opt/scripts/systemctl/{systemctl_id}/script.{script_type}"
|
||||||
|
|
||||||
|
|
||||||
class FilterModule(object):
|
class FilterModule(object):
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: Include dependencies
|
- name: "Include '{{ systemctl_id }}'"
|
||||||
include_role:
|
include_role:
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
loop:
|
loop:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user