diff --git a/plays/home.yml b/plays/home.yml
index 4104c91e05b336449e64354c447f67dda01f5e15..866016c6b34a20d7c2c477764bf4c1d926533b59 100755
--- a/plays/home.yml
+++ b/plays/home.yml
@@ -7,5 +7,6 @@
       ldap_password: "{{ vault.ldap_home_password }}"
       binddn: cn=home,ou=service-users,dc=crans,dc=org
       rootdn: cn=Utilisateurs,dc=crans,dc=org
+      borg_key: "{{ vault.borgbackup_passwd }}"
   roles:
     - home
diff --git a/roles/home/tasks/main.yml b/roles/home/tasks/main.yml
index 10b1ebc5d328f1a684c722929df22cd28a92fd35..e20d0ea490addf651a3646379da4b9e6e0fee6e2 100644
--- a/roles/home/tasks/main.yml
+++ b/roles/home/tasks/main.yml
@@ -4,6 +4,7 @@
     update_cache: true
     install_recommends: false
     name:
+      - python3-jinja2
       - python3-ldap
   register: apt_result
   retries: 3
@@ -34,8 +35,8 @@
 
 - name: Deploy home config
   template:
-    src: home/config.py.j2
-    dest: /var/local/home/config.py
+    src: home/home.json.j2
+    dest: /var/local/home/home.json
     mode: 0600
     owner: root
     group: root
diff --git a/roles/home/templates/cron.d/home.j2 b/roles/home/templates/cron.d/home.j2
index f26e2e46734839b18be7d60a469130bc7326ffd4..b64d9a8790f527e3ede8c13a902c38d304828b7a 100644
--- a/roles/home/templates/cron.d/home.j2
+++ b/roles/home/templates/cron.d/home.j2
@@ -1,2 +1,2 @@
 {{ ansible_header | comment }}
-* * * * * root /usr/bin/python3 /var/local/home/main.py
+* * * * * root /usr/bin/python3 /var/local/home/home.py
diff --git a/roles/home/templates/home/config.py.j2 b/roles/home/templates/home/config.py.j2
deleted file mode 100644
index 7d3d22335eb10c0783426507ac189e75bef16d19..0000000000000000000000000000000000000000
--- a/roles/home/templates/home/config.py.j2
+++ /dev/null
@@ -1,10 +0,0 @@
-{{ ansible_header | comment }}
-
-ldap_server = '{{ home.ldap_server }}'
-binddn = '{{ home.binddn }}'
-password = '{{ home.ldap_password }}'
-rootdn = '{{ home.rootdn }}'
-home_dir = '/pool/home'
-mail_dir = '/pool/mail'
-home_quota = '/usr/sbin/zfs set userquota@{user}=30G pool/home'
-mail_quota = '/usr/sbin/zfs set userquota@{user}=10G pool/mail'
diff --git a/roles/home/templates/home/home.json.j2 b/roles/home/templates/home/home.json.j2
new file mode 100644
index 0000000000000000000000000000000000000000..ada269e1d98ddf57de8e073cb235368a436aa61f
--- /dev/null
+++ b/roles/home/templates/home/home.json.j2
@@ -0,0 +1,11 @@
+{
+	"ldap_server": "{{ home.ldap_server }}"
+	"binddn": "{{ home.binddn }}"
+	"password": "{{ home.ldap_password }}"
+	"rootdn": "{{ home.rootdn }}"
+	"home_dir": "/pool/home"
+	"mail_dir": "/pool/mail"
+	"home_quota": "/usr/sbin/zfs set userquota@{user}=30G pool/home"
+	"mail_quota": "/usr/sbin/zfs set userquota@{user}=10G pool/mail"
+	"borg_key": "{{ home.borg_key }}"
+}