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

fix: add conditions to rollout the correct global_properties depending on the...

fix: add conditions to rollout the correct global_properties depending on the target system (prod, test, dev)
parent 7eb01d4f
Branches
No related tags found
No related merge requests found
......@@ -19,11 +19,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 "appprod0"
- name: set symlink for correct global.properties PROD
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"
- name: template global.properties TEST
template:
......@@ -45,11 +47,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"
- name: set symlink for correct global.properties TEST
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"
- name: template global.properties DEV
template:
......@@ -71,8 +75,10 @@
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"
- name: set symlink for correct global.properties DEV
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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment