Select Git revision
exit_strategy.pl
install_subapp.yml 7.58 KiB
---
- name: Berechtigungen für Blockdevice ".subapp" korrigieren
file:
path: "/home/{{ vault_subapp_user }}/.subapp/"
state: directory
owner: "{{ vault_subapp_user }}"
group: "{{ vault_subapp_group }}"
mode: "0750"
- name: configure PIDfile directory creation
template:
src: "usr/lib/tmpfiles.d/subapp-pid-dir.conf.j2"
dest: "/usr/lib/tmpfiles.d/subapp-pid-dir.conf"
owner: "root"
group: "root"
mode: "0644"
notify: create PIDfiles
# erst nach der Erstellung der User/Gruppen durchführen!
- name: update Sources
apt:
update_cache: "yes"
- name: Optionale Pakete für schnellere BagIt Verarbeitung installieren
apt:
name:
- 'libio-async-perl' # offical Debian package
- 'libio-aio-perl' # offical Debian package
- 'libparallel-parallel-map-perl' # packaged by SLUBArchiv.digital from CPAN
- 'libparallel-datapipe-perl' # packaged by SLUBArchiv.digital from CPAN
- name: Submission Application installieren
apt:
name: "submissionapplication4rosetta"
state: present
allow_unauthenticated: "true"
- name: Systemd-Unitfiles installieren (Templates)
template:
src: "etc/systemd/user/{{ item }}.j2"
dest: "/etc/systemd/user/{{ item }}"
owner: "{{ vault_subapp_vars.files.subapp.owner }}"
group: "{{ vault_subapp_vars.files.subapp.group }}"
mode: "{{ vault_subapp_vars.files.subapp.mode }}"
loop:
- "webservice_status_SLUBarchiv.service"
- "subapp.service"
tags: [systemd]
- name: Systemd-Unitfiles installieren (Files)
copy:
src: "etc/systemd/user/{{ item }}"
dest: "/etc/systemd/user/{{ item }}"
loop:
- "chmod_sip_uploads.service"
- "chown_dip_access.service"
tags: [systemd]
# Unitfiles neu einlesen, Services sofort starten & automatisch bei jedem Booten starten
- name: Systemd daemon reload
systemd:
daemon-reload: "true"
tags: [systemd]
- name: Services automatisch bei jedem Booten starten
command: "systemctl enable /etc/systemd/user/{{ item }}" # noqa 301 303
loop:
- "webservice_status_SLUBarchiv.service"
- "subapp.service"
- "chmod_sip_uploads.service"
- "chown_dip_access.service"
tags: [systemd]