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

fix: make global.properties deployment more robust

parent 227439c3
Branches
Tags
No related merge requests found
---
- name: get info on global.properties file. Is it a symlink?
ansible.builtin.stat:
path: "/exlibris/dps/d4_1/system.dir/conf/global.properties"
register: stat
- name: template global.properties PROD
ansible.builtin.template:
src: "{{ item }}"
......@@ -55,7 +60,10 @@
src: "/exlibris/dps/d4_1/system.dir/conf/global.properties_https"
dest: "/exlibris/dps/d4_1/system.dir/conf/global.properties"
state: link
when: ("-test" in ansible_hostname)
force: true
when:
- ( "-test" in ansible_hostname )
- ( stat.stat.isreg is true )
- name: template global.properties DEV
ansible.builtin.template:
......@@ -78,12 +86,16 @@
- "exlibris/dps/d4_1/system.dir/conf/global.properties_http"
- "exlibris/dps/d4_1/system.dir/conf/global.properties_https"
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: ("appdev" in ansible_hostname)
force: true
when:
- ( "appdev" in ansible_hostname )
- ( stat.stat.isreg is true )
- name: create directory for Solr config file
ansible.builtin.file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment