From: Kristof Provost Date: Tue, 11 Feb 2025 09:29:33 +0000 (+0100) Subject: ansible: set safe directory on domotica checkout X-Git-Url: https://git.sigsegv.be/?a=commitdiff_plain;h=c6649c284fc4aa7d9bac7be24e3b33f029d6a514;p=pennestraat-domotica 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. --- 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'