artefactual-labs / ansible-archivematica-src

An ansible role for deploying Archivematica from from its source code repositories
GNU Affero General Public License v3.0
5 stars 21 forks source link

git: Set AM and SS src dirs as safe dirs #367

Closed mamedin closed 2 years ago

mamedin commented 2 years ago

Connects to https://github.com/artefactual-labs/ansible-archivematica-src/issues/366

mamedin commented 2 years ago

The 2 new tasks creates the following fire in the ansible_ssh_user home directory:

artefactual@shibu-am:~$ cat .gitconfig
[safe]
    directory = /opt/archivematica/archivematica-storage-service
    directory = /opt/archivematica/archivematica

And it allows to clone the src directories as ansible_ssh_user.

mamedin commented 2 years ago

Thanks Santi, but I'm going to ask for a new CR in a few minutes, because the last change was adding the same directories on every role run to the .gitconfig file. So, I'm adding an additional task to get the directories included in .gitconfig, and it will only add the SS or AM src directory in case it was not already included.

mamedin commented 2 years ago

Cherry-picked to: