Commit cd29f35f authored by bow's avatar bow
Browse files

Fix error in deploy_jar caused by incorrect ordering

parent 8c695b8e
......@@ -12,6 +12,12 @@
set_fact: sentinel_dep_conf={{ sentinel_dep_jar|dirname }}/sentinel.conf
when: cmd_scala_series|success and cmd_sentinel_version|success
- name: create config file
template: src=sentinel.conf.j2 dest={{ sentinel_dep_conf }} owner={{ sentinel_user }} group={{ sentinel_group }} mode=0400
- name: create systemd service file
template: src=sentinel.service.j2 dest=/etc/systemd/system/sentinel.service
- name: ensure sentinel service is stopped if repo was updated
service: name=sentinel state=stopped
when: gitclone|changed
......@@ -58,11 +64,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: create config file
template: src=sentinel.conf.j2 dest={{ sentinel_dep_conf }} owner={{ sentinel_user }} group={{ sentinel_group }} mode=0400
- name: create systemd service file
template: src=sentinel.service.j2 dest=/etc/systemd/system/sentinel.service
- name: start sentinel service
service: name=sentinel state=started
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