Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible_lza_sanitytest
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_sanitytest
Commits
b5652fcd
Commit
b5652fcd
authored
3 years ago
by
Jörg Sachse
Browse files
Options
Downloads
Patches
Plain Diff
fix: install prerequisites for deep_fixity and check installation (thx
@steidl
)
parent
a0f85aad
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/install_test_scripts.yml
+33
-4
33 additions, 4 deletions
tasks/install_test_scripts.yml
with
33 additions
and
4 deletions
tasks/install_test_scripts.yml
+
33
−
4
View file @
b5652fcd
...
@@ -9,6 +9,15 @@
...
@@ -9,6 +9,15 @@
'
libio-pty-perl'
,
'
libio-pty-perl'
,
]
]
state
:
latest
state
:
latest
-
name
:
install prerequisites for deep_fixity
apt
:
name
:
"
libdigest-crc-perl"
state
:
latest
# This plugin is part of the community.general collection (version 4.0.2), which might not be installed on your computer.
# https://docs.ansible.com/ansible/latest/collections/community/general/cpanm_module.html
-
name
:
community.general.cpanm
:
name
:
"
Getopt::Long::Complete"
-
name
:
deploy wrapper script for exit strategy
-
name
:
deploy wrapper script for exit strategy
template
:
template
:
...
@@ -41,8 +50,28 @@
...
@@ -41,8 +50,28 @@
-
dest
:
"
rosettaDeepFixity/"
-
dest
:
"
rosettaDeepFixity/"
repo
:
"
git@{{
vault_slub_git_repo_fqdn
}}:digital-preservation/rosettadeepfixity.git"
repo
:
"
git@{{
vault_slub_git_repo_fqdn
}}:digital-preservation/rosettadeepfixity.git"
-
name
:
test if prerequisites
for exit strategy script
are installed
-
name
:
Perl syntax check
for exit strategy script
command
:
"
perl
-c
/usr/local/bin/rosettaExitStrategy/perl/exit_strategy.pl"
command
:
"
perl
-c
/usr/local/bin/rosettaExitStrategy/perl/exit_strategy.pl"
register
:
depcheck
register
:
depcheck_exit
failed_when
:
"
'syntax
OK'
not
in
depcheck.stderr"
failed_when
:
"
'syntax
OK'
not
in
depcheck_exit.stderr"
changed_when
:
"
depcheck.rc
!=
0"
changed_when
:
false
-
name
:
test if prerequisites for exit strategy script are installed
ansible.builtin.assert
:
that
:
-
"
'syntax
OK'
in
depcheck_exit.stderr"
-
"
depcheck_exit.rc
==
0"
fail_msg
:
"
{{
depcheck_exit.stderr
}}"
success_msg
:
"
exit
strategy
script
has
all
required
prerequisites
installed"
-
name
:
Perl syntax check for deep_fixity script
command
:
"
perl
-c
/usr/local/bin/rosettaDeepFixity/deep_fixitycheck.pl"
register
:
depcheck_deep_fixity
failed_when
:
"
'syntax
OK'
not
in
depcheck_deep_fixity.stderr"
changed_when
:
false
-
name
:
test if prerequisites for exit strategy script are installed
ansible.builtin.assert
:
that
:
-
"
'syntax
OK'
in
depcheck_deep_fixity.stderr"
-
"
depcheck_deep_fixity.rc
==
0"
fail_msg
:
"
{{
depcheck_deep_fixity.stderr
}}"
success_msg
:
"
deep_fixity
script
has
all
required
prerequisites
installed"
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