From c6649c284fc4aa7d9bac7be24e3b33f029d6a514 Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Tue, 11 Feb 2025 10:29:33 +0100 Subject: [PATCH] ansible: set safe directory on domotica checkout 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/domotica/tasks/domotica.yaml b/ansible/roles/domotica/tasks/domotica.yaml index a13408b..cea5013 100644 --- a/ansible/roles/domotica/tasks/domotica.yaml +++ b/ansible/roles/domotica/tasks/domotica.yaml @@ -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' -- 2.51.0