Commit cff94371 authored by bow's avatar bow
Browse files

Update deployment of config file

parent 491d3367
......@@ -8,6 +8,10 @@
set_fact: sentinel_dep_jar={{ sentinel_deployment_dir }}/Sentinel-{{ sentinel_version }}.jar
when: cmd_scala_series|success and cmd_sentinel_version|success
- name: store expected deployment config path
set_fact: sentinel_dep_conf={{ sentinel_dep_jar|dirname }}/sentinel.conf
when: cmd_scala_series|success and cmd_sentinel_version|success
- name: remove possible assembled jar if repo was updated
file: path={{ sentinel_asm_jar }} state=absent
when: gitclone|changed
......@@ -50,5 +54,5 @@
copy: src={{ sentinel_asm_jar }} dest={{ sentinel_dep_jar }} remote_src=yes force=yes owner={{ sentinel_user }}
when: not dep_jar.stat.exists
- name: copy config file
template: src=sentinel.conf.j2 dest={{ sentinel_dep_jar|dirname }}/sentinel.conf owner={{ sentinel_user }} group={{ sentinel_group }} mode=0400
- name: create config file
template: src=sentinel.conf.j2 dest={{ sentinel_dep_conf }} owner={{ sentinel_user }} group={{ sentinel_group }} mode=0400
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment