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

refactor: remove SubApp update routine (it's updated nightly anyway)

parent 67a63fa0
No related branches found
No related tags found
1 merge request!1ND-1759
......@@ -18,6 +18,10 @@
tags: [subapp]
# erst nach der Erstellung der User/Gruppen durchführen!
- name: update Sources
apt:
update_cache: "yes"
tags: [subapp]
- name: Submission Application installieren
apt:
name: "submissionapplication4rosetta"
......@@ -72,53 +76,6 @@
- "chown_dip_access.service"
tags: [systemd]
- name: update Sources
apt:
update_cache: "yes"
tags: [subapp]
- name: block to get SubApp status
block:
- name: see if SubApp is upgradeable
shell: 'apt list --upgradable | grep submission'
failed_when: subapp_upgradeable.rc != 0 and subapp_upgradeable.rc != 1
register: subapp_upgradeable
tags: [subapp]
- name: register SubApp runstatus
command: 'systemctl status subapp.service' # noqa 303
register: subapp_runstatus
failed_when: subapp_runstatus.rc != 0 and subapp_runstatus.rc != 3
tags: [subapp]
- name: block to stop Services
block:
- name: stop Webservice
systemd:
name: "webservice_status_SLUBarchiv.service"
state: stopped
tags: [subapp]
- name: stop SubApp
systemd:
name: "subapp.service"
state: stopped
tags: [subapp]
when:
- ( subapp_runstatus.rc == 0 )
- ( subapp_upgradeable.rc == 0 )
tags: [subapp]
- name: update SubApp
apt:
name: "submissionapplication4rosetta"
state: latest # noqa 403
allow_unauthenticated: "yes"
when:
- ( subapp_upgradeable.rc == 0 )
notify:
- restart subapp
- restart webservice_status_SLUBarchiv
tags: [subapp]
### KONFIGURATIONEN FÜR SUBMISSION APPLICATION INSTALLIEREN ###
- name: SubApp-Config einspielen
block:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment