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 @@
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment