diff --git a/tasks/main.yml b/tasks/main.yml
index 7ac60cfc0f763de6d3373d68235963638b3558e7..fce62dae94801070f7ca9f4f4fe13a685a01990d 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -11,15 +11,15 @@
 
 - import_tasks: onserver.yml
   vars:
-    borgbackup_source_key: "{{hostkey.stdout}}"
-    borgbackup_source_host: "{{ansible_hostname}}"
-  delegate_to: "{{borgbackup_target_host}}"
+    borgbackup_source_key: "{{ hostkey.stdout }}"
+    borgbackup_source_host: "{{ ansible_hostname }}"
+  delegate_to: "{{ borgbackup_target_host }}"
 
 - name: Check if Repo already exists
   stat:
     path: "{{ borgbackup_pool }}/{{ ansible_hostname }}/backup"
   register: repo
-  delegate_to: "{{borgbackup_target_host}}"
+  delegate_to: "{{ borgbackup_target_host }}"
 
 - name: Gather facts for backup target
   setup:
diff --git a/tasks/onserver.yml b/tasks/onserver.yml
index 83eb052a2dd61ec8e0cad6babdfb303b2fcf0aad..8782bea3b05de0cbd041b71539134996ed4e1fad 100644
--- a/tasks/onserver.yml
+++ b/tasks/onserver.yml
@@ -32,7 +32,7 @@
 
 - name: Set permissions
   file:
-    path: "{{item}}"
+    path: "{{ item }}"
     owner: "borgbackup"
     group: "borgbackup"
     mode: 0700
@@ -44,5 +44,5 @@
 - name: Add public key
   authorized_key:
     user: "borgbackup"
-    key: "{{borgbackup_source_key}}"
+    key: "{{ borgbackup_source_key }}"
     key_options: "command=\"cd {{ hostvars[borgbackup_target_host]['borgbackup_pool'] | default(borgbackup_pool) }}/{{ borgbackup_source_host }};borg serve --restrict-to-path {{ hostvars[borgbackup_target_host]['borgbackup_pool'] | default(borgbackup_pool) }}/{{ borgbackup_source_host }}\",restrict"