diff --git a/playbooks/setup-lxc.yaml b/playbooks/setup-lxc.yaml index 2bfb5ae..0d887be 100644 --- a/playbooks/setup-lxc.yaml +++ b/playbooks/setup-lxc.yaml @@ -25,7 +25,7 @@ - name: Check if app data directory exists stat: - path: /app/{{ hostname }} + path: "/app/{{ hostname }}" register: app_stat - name: Restore Wiapp datakmd Dir @@ -33,7 +33,7 @@ restic --password-file /home/restic/.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target / restore latest args: chdir: /home/restic - creates: /app/{{ hostname }} + creates: "/app/{{ hostname }}" when: not app_stat.stat.exists or not app_stat.stat.isdir - name: Reload systemd daemon @@ -42,6 +42,6 @@ - name: Start App Service systemd: - name: {{ hostname }} + name: "{{ hostname }}" state: started enabled: yes \ No newline at end of file