diff --git a/deploy/ansible.yml b/deploy/ansible.yml index 725293b02..1d88157f7 100644 --- a/deploy/ansible.yml +++ b/deploy/ansible.yml @@ -9,5 +9,12 @@ owner: ubuntu group: ubuntu mode: 0755 + - name: copy conf file to dest + copy: + src: ../conf/app.conf + dest: /jxdata/jx-callback/conf/app.conf + owner: ubuntu + group: ubuntu + mode: 0555 - name: shell - shell: sudo systemctl restart jx-callback + shell: cd /jxdata/jx-callback/conf && sed -i 's/runmode\s*=\s*.*/runmode ={{ runmode }}/' app.conf && sudo systemctl restart jx-callback