Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ansible_lza_rosetta_app
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_rosetta_app
Commits
9dc4040c
Commit
9dc4040c
authored
1 year ago
by
Jörg Sachse
Browse files
Options
Downloads
Patches
Plain Diff
fix: make sure 'when:' conditions match hostname patterns
parent
348c1577
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/rosetta/configure_rosetta_prerequisites.yml
+12
-10
12 additions, 10 deletions
tasks/rosetta/configure_rosetta_prerequisites.yml
with
12 additions
and
10 deletions
tasks/rosetta/configure_rosetta_prerequisites.yml
+
12
−
10
View file @
9dc4040c
...
...
@@ -19,13 +19,15 @@
loop
:
-
"
exlibris/dps/d4_1/system.dir/conf/global.properties_http"
-
"
exlibris/dps/d4_1/system.dir/conf/global.properties_https"
when
:
ansible_hostname in "appprod0"
# when: ("appprod0" in ansible_hostname)
when
:
false
-
name
:
set symlink for correct global.properties PROD
ansible.builtin.file
:
src
:
"
/exlibris/dps/d4_1/system.dir/conf/global.properties_http"
dest
:
"
/exlibris/dps/d4_1/system.dir/conf/global.properties"
state
:
link
when
:
ansible_hostname in "appprod0"
# when: ("appprod0" in ansible_hostname)
when
:
false
-
name
:
template global.properties TEST
ansible.builtin.template
:
...
...
@@ -47,13 +49,13 @@
loop
:
-
"
exlibris/dps/d4_1/system.dir/conf/global.properties_http"
-
"
exlibris/dps/d4_1/system.dir/conf/global.properties_https"
when
:
ansible_hostname
in "-test"
when
:
("-test" in
ansible_hostname
)
-
name
:
set symlink for correct global.properties TEST
ansible.builtin.file
:
src
:
"
/exlibris/dps/d4_1/system.dir/conf/global.properties_https"
dest
:
"
/exlibris/dps/d4_1/system.dir/conf/global.properties"
state
:
link
when
:
ansible_hostname
in "-test"
when
:
("-test" in
ansible_hostname
)
-
name
:
template global.properties DEV
ansible.builtin.template
:
...
...
@@ -75,13 +77,13 @@
loop
:
-
"
exlibris/dps/d4_1/system.dir/conf/global.properties_http"
-
"
exlibris/dps/d4_1/system.dir/conf/global.properties_https"
when
:
ansible_hostname
in "appdev"
when
:
("appdev" in
ansible_hostname
)
-
name
:
set symlink for correct global.properties DEV
ansible.builtin.file
:
src
:
"
/exlibris/dps/d4_1/system.dir/conf/global.properties_https"
dest
:
"
/exlibris/dps/d4_1/system.dir/conf/global.properties"
state
:
link
when
:
ansible_hostname
in "appdev"
when
:
("appdev" in
ansible_hostname
)
-
name
:
create directory for Solr config file
ansible.builtin.file
:
...
...
@@ -90,8 +92,8 @@
mode
:
"
0755"
owner
:
"
{{
vault_rosetta_user
}}"
group
:
"
{{
vault_rosetta_group
}}"
when
:
("-test" in ansible_hostname) or
("-mol" in ansible_hostname)
#
when: ("-test" in ansible_hostname) or
#
("-mol" in ansible_hostname)
-
name
:
>
Deploy modified security.json file for Testsystem so CI/CD tests can be run
...
...
@@ -103,5 +105,5 @@
mode
:
"
0664"
owner
:
"
{{
vault_rosetta_user
}}"
group
:
"
{{
vault_rosetta_group
}}"
when
:
("-test" in ansible_hostname) or
("-mol" in ansible_hostname)
#
when: ("-test" in ansible_hostname) or
#
("-mol" in ansible_hostname)
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