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
No related branches found
No related tags found
No related merge requests found
...@@ -19,11 +19,13 @@ ...@@ -19,11 +19,13 @@
loop: loop:
- "exlibris/dps/d4_1/system.dir/conf/global.properties_http" - "exlibris/dps/d4_1/system.dir/conf/global.properties_http"
- "exlibris/dps/d4_1/system.dir/conf/global.properties_https" - "exlibris/dps/d4_1/system.dir/conf/global.properties_https"
when: ansible_hostname in "appprod0"
- name: set symlink for correct global.properties PROD - name: set symlink for correct global.properties PROD
file: file:
src: "/exlibris/dps/d4_1/system.dir/conf/global.properties_http" src: "/exlibris/dps/d4_1/system.dir/conf/global.properties_http"
dest: "/exlibris/dps/d4_1/system.dir/conf/global.properties" dest: "/exlibris/dps/d4_1/system.dir/conf/global.properties"
state: link state: link
when: ansible_hostname in "appprod0"
- name: template global.properties TEST - name: template global.properties TEST
template: template:
...@@ -45,11 +47,13 @@ ...@@ -45,11 +47,13 @@
loop: loop:
- "exlibris/dps/d4_1/system.dir/conf/global.properties_http" - "exlibris/dps/d4_1/system.dir/conf/global.properties_http"
- "exlibris/dps/d4_1/system.dir/conf/global.properties_https" - "exlibris/dps/d4_1/system.dir/conf/global.properties_https"
when: ansible_hostname in "-test"
- name: set symlink for correct global.properties TEST - name: set symlink for correct global.properties TEST
file: file:
src: "/exlibris/dps/d4_1/system.dir/conf/global.properties_https" src: "/exlibris/dps/d4_1/system.dir/conf/global.properties_https"
dest: "/exlibris/dps/d4_1/system.dir/conf/global.properties" dest: "/exlibris/dps/d4_1/system.dir/conf/global.properties"
state: link state: link
when: ansible_hostname in "-test"
- name: template global.properties DEV - name: template global.properties DEV
template: template:
...@@ -71,8 +75,10 @@ ...@@ -71,8 +75,10 @@
loop: loop:
- "exlibris/dps/d4_1/system.dir/conf/global.properties_http" - "exlibris/dps/d4_1/system.dir/conf/global.properties_http"
- "exlibris/dps/d4_1/system.dir/conf/global.properties_https" - "exlibris/dps/d4_1/system.dir/conf/global.properties_https"
when: ansible_hostname in "appdev"
- name: set symlink for correct global.properties DEV - name: set symlink for correct global.properties DEV
file: file:
src: "/exlibris/dps/d4_1/system.dir/conf/global.properties_https" src: "/exlibris/dps/d4_1/system.dir/conf/global.properties_https"
dest: "/exlibris/dps/d4_1/system.dir/conf/global.properties" dest: "/exlibris/dps/d4_1/system.dir/conf/global.properties"
state: link 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