diff --git a/deploy/ansible.yml b/deploy/ansible.yml index f04a91bb7..6b560fea8 100644 --- a/deploy/ansible.yml +++ b/deploy/ansible.yml @@ -36,3 +36,7 @@ - name: shell shell: cd {{ deploy_dir }}/conf && sed -i 's/runmode\s*=\s*.*/runmode = {{ runmode }}/' app.conf && sudo systemctl restart jx-callback + when : runmode == "rsm" + - name: shell + shell: cd {{ deploy_dir }}/conf && sed -i 's/runmode\s*=\s*.*/runmode = {{ runmode }}/' app.conf && sudo systemctl restart jx-callback-{{ runmode }} + when: runmode != "rsm" \ No newline at end of file