Skip to content
Snippets Groups Projects
Commit 9fdd02b9 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: clone significant properties to /usr/local/share/ and symlink them for the SubApp

parent 86e98959
No related branches found
No related tags found
No related merge requests found
...@@ -84,17 +84,26 @@ ...@@ -84,17 +84,26 @@
ansible.builtin.apt: ansible.builtin.apt:
name: "git" name: "git"
state: latest state: latest
- name: Config für Signifikante Eigenschaften vom falschen Pfad entfernen
ansible.builtin.file:
path: "/home/{{ vault_subapp_user }}/.subapp/significantproperties/"
state: absent
- name: Config für Signifikante Eigenschaften einspielen - name: Config für Signifikante Eigenschaften einspielen
ansible.builtin.git: ansible.builtin.git:
repo: "https://git.slub-dresden.de/digital-preservation/significantproperties.git" repo: "https://git.slub-dresden.de/digital-preservation/significantproperties.git"
dest: "/home/{{ vault_subapp_user }}/.subapp/significantproperties/" dest: "/usr/local/share/significantproperties/"
- name: Rechte für Signifikante Eigenschaften setzen (Es gibt einen vererbten SubApp Typ-Constraint für diesen cfg-Eintrag, der alle Dateinamen in einem schreibbaren Verzeichnis verlangt.) force: true
- name: Rechte für Ordner mit Signifikanten Eigenschaften setzen (Es gibt einen vererbten SubApp Typ-Constraint für diesen cfg-Eintrag, der alle Dateinamen in einem schreibbaren Verzeichnis verlangt.)
ansible.builtin.file: ansible.builtin.file:
path: "/home/{{ vault_subapp_user }}/.subapp/significantproperties/" path: "/usr/local/share/significantproperties/"
owner: "{{ vault_subapp_vars.files.subapp.owner }}" owner: "{{ vault_subapp_vars.files.subapp.owner }}"
group: "{{ vault_subapp_vars.files.subapp.group }}" group: "{{ vault_subapp_vars.files.subapp.group }}"
mode: "0750" mode: "0750"
recurse: true - name: Symlink zu Signifikanten Eigenschaften setzen
ansible.builtin.file:
dest: "/home/{{ vault_subapp_user }}/.subapp/significantproperties"
src: "/usr/local/share/significantproperties/"
state: link
### KONFIGURATIONEN FÜR SUBMISSION APPLICATION INSTALLIEREN ### ### KONFIGURATIONEN FÜR SUBMISSION APPLICATION INSTALLIEREN ###
- name: SubApp-Config einspielen - name: SubApp-Config einspielen
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment