Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible_lza_validators
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_validators
Commits
f08e84a6
Commit
f08e84a6
authored
1 year ago
by
Jörg Sachse
Browse files
Options
Downloads
Patches
Plain Diff
fix: remove pdfa_webservice directory before fresh deploy, because else Git will go on strike
parent
962c7cfd
No related branches found
No related tags found
No related merge requests found
Pipeline
#5304
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/compile_callas_binaries.yml
+7
-15
7 additions, 15 deletions
tasks/compile_callas_binaries.yml
with
7 additions
and
15 deletions
tasks/compile_callas_binaries.yml
+
7
−
15
View file @
f08e84a6
...
@@ -23,11 +23,13 @@
...
@@ -23,11 +23,13 @@
src
:
"
{{
role_path
}}/../ansible_vaults/{{
role_name
}}/id_ed25519_deploykey"
src
:
"
{{
role_path
}}/../ansible_vaults/{{
role_name
}}/id_ed25519_deploykey"
dest
:
"
/tmp/id_ed25519_deploykey"
dest
:
"
/tmp/id_ed25519_deploykey"
mode
:
"
0600"
mode
:
"
0600"
# delegate_to: 127.0.0.1
# ATTENTION:
-
name
:
clear Git repo directory for fresh checkout
# - This is run on the controller PC, not on the target! Needs Git binary.
ansible.builtin.file
:
# - This task requires Git credentials to be entered in interactive mode.
path
:
"
/opt/pdfa_webservice/"
state
:
absent
changed_when
:
false
# This cannot be idempotent, because later tasks change the repo content.
-
name
:
checkout PDF/A-Webservice Git repo
-
name
:
checkout PDF/A-Webservice Git repo
ansible.builtin.git
:
ansible.builtin.git
:
repo
:
"
git@git.slub-dresden.de:slub-digitalpreservation/pdfa_webservice.git"
repo
:
"
git@git.slub-dresden.de:slub-digitalpreservation/pdfa_webservice.git"
...
@@ -36,18 +38,9 @@
...
@@ -36,18 +38,9 @@
force
:
true
force
:
true
key_file
:
"
/tmp/id_ed25519_deploykey"
key_file
:
"
/tmp/id_ed25519_deploykey"
ssh_opts
:
"
-o
StrictHostKeyChecking=accept-new"
ssh_opts
:
"
-o
StrictHostKeyChecking=accept-new"
#
delegate_to: 127.0.0.1
update
:
true
changed_when
:
false
# This cannot be idempotent, because later tasks change the repo content.
changed_when
:
false
# This cannot be idempotent, because later tasks change the repo content.
# - name: copy PDF/A-Webservice Git repo to managed host
# ansible.builtin.copy:
# src: "/tmp/pdfa_webservice/"
# dest: "/opt/pdfa_webservice/"
# directory_mode: "0755"
# mode: "0644"
# register: cp_git
# changed_when: false # I have no idea why this isn't idempotent.
-
name
:
set symlinks for Callas PDF Engine
-
name
:
set symlinks for Callas PDF Engine
ansible.builtin.file
:
ansible.builtin.file
:
state
:
link
state
:
link
...
@@ -72,5 +65,4 @@
...
@@ -72,5 +65,4 @@
-
name
:
compile PDF/A-Webservice binary
# noqa command-instead-of-shell
-
name
:
compile PDF/A-Webservice binary
# noqa command-instead-of-shell
ansible.builtin.shell
:
ansible.builtin.shell
:
cmd
:
'
CXXFLAGS="-std=c++11"
make
--directory
/opt/pdfa_webservice/src/'
cmd
:
'
CXXFLAGS="-std=c++11"
make
--directory
/opt/pdfa_webservice/src/'
# when: cp_git.failed is false
changed_when
:
false
# This always changes, because the dest path is fresh.
changed_when
:
false
# This always changes, because the dest path is fresh.
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