diff --git a/tasks/main.yml b/tasks/main.yml index 51207f3..6a975ca 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -81,7 +81,7 @@ - name: Copy start script template: - src: start.sh - dest: "{{ cat_git_destination }}" + dest: "{{ cat_git_destination }}"/start.sh owner: cat group: cat diff --git a/templates/cat.service b/templates/cat.service index e55c7ea..7614ee3 100644 --- a/templates/cat.service +++ b/templates/cat.service @@ -5,7 +5,7 @@ After=network.target [Service] Type=simple WorkingDirectory={{ cat_git_destination }} -ExecStart={{ cat_git_destination }}/start +ExecStart={{ cat_git_destination }}/start.sh Restart=on-failure # or always, on-abort, etc [Install]