ansible: set safe directory on domotica checkout
authorKristof Provost <kp@FreeBSD.org>
Tue, 11 Feb 2025 09:29:33 +0000 (10:29 +0100)
committerKristof Provost <kp@FreeBSD.org>
Tue, 11 Feb 2025 09:29:33 +0000 (10:29 +0100)
Otherwise git complains about file ownership (after the www user creates a DB, I
believe) and we can't re-apply the playbook.

ansible/roles/domotica/tasks/domotica.yaml

index a13408b..cea5013 100644 (file)
@@ -1,3 +1,6 @@
+- name: UPDATE - Safe Directory
+  command: git config --global --add safe.directory /home/kp/domotica
+  check_mode: no
 - name: Install domotica app
   ansible.builtin.git:
     repo: 'https://github.com/kprovost/domotica.git'