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

fix: make sure 'when:' conditions match hostname patterns

parent 348c1577
No related branches found
No related tags found
No related merge requests found
...@@ -19,13 +19,15 @@ ...@@ -19,13 +19,15 @@
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" # when: ("appprod0" in ansible_hostname)
when: false
- name: set symlink for correct global.properties PROD - name: set symlink for correct global.properties PROD
ansible.builtin.file: ansible.builtin.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" # when: ("appprod0" in ansible_hostname)
when: false
- name: template global.properties TEST - name: template global.properties TEST
ansible.builtin.template: ansible.builtin.template:
...@@ -47,13 +49,13 @@ ...@@ -47,13 +49,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" when: ("-test" in ansible_hostname)
- name: set symlink for correct global.properties TEST - name: set symlink for correct global.properties TEST
ansible.builtin.file: ansible.builtin.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" when: ("-test" in ansible_hostname)
- name: template global.properties DEV - name: template global.properties DEV
ansible.builtin.template: ansible.builtin.template:
...@@ -75,13 +77,13 @@ ...@@ -75,13 +77,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 "appdev" when: ("appdev" in ansible_hostname)
- name: set symlink for correct global.properties DEV - name: set symlink for correct global.properties DEV
ansible.builtin.file: ansible.builtin.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" when: ("appdev" in ansible_hostname)
- name: create directory for Solr config file - name: create directory for Solr config file
ansible.builtin.file: ansible.builtin.file:
...@@ -90,8 +92,8 @@ ...@@ -90,8 +92,8 @@
mode: "0755" mode: "0755"
owner: "{{ vault_rosetta_user }}" owner: "{{ vault_rosetta_user }}"
group: "{{ vault_rosetta_group }}" group: "{{ vault_rosetta_group }}"
when: ("-test" in ansible_hostname) or # when: ("-test" in ansible_hostname) or
("-mol" in ansible_hostname) # ("-mol" in ansible_hostname)
- name: > - name: >
Deploy modified security.json file for Testsystem so CI/CD tests can be run Deploy modified security.json file for Testsystem so CI/CD tests can be run
...@@ -103,5 +105,5 @@ ...@@ -103,5 +105,5 @@
mode: "0664" mode: "0664"
owner: "{{ vault_rosetta_user }}" owner: "{{ vault_rosetta_user }}"
group: "{{ vault_rosetta_group }}" group: "{{ vault_rosetta_group }}"
when: ("-test" in ansible_hostname) or # when: ("-test" in ansible_hostname) or
("-mol" in ansible_hostname) # ("-mol" in ansible_hostname)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment