Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible_lza_ingest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
ansible_lza_ingest
Commits
f12ebbc7
Commit
f12ebbc7
authored
4 years ago
by
Jörg Sachse
Browse files
Options
Downloads
Patches
Plain Diff
refactor: remove SubApp update routine (it's updated nightly anyway)
parent
67a63fa0
No related branches found
No related tags found
1 merge request
!1
ND-1759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/install_subapp.yml
+4
-47
4 additions, 47 deletions
tasks/install_subapp.yml
with
4 additions
and
47 deletions
tasks/install_subapp.yml
+
4
−
47
View file @
f12ebbc7
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment