From 0b36b4b81f02e8ebb86ee873bdc18a87dfb69201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 14 Oct 2020 09:36:03 +0800 Subject: [PATCH] beta --- deploy/ansible.yml | 4 ++++ 1 file changed, 4 insertions(+) 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