Files
jx-callback/deploy/ansible.yml
2018-07-31 15:25:00 +08:00

21 lines
602 B
YAML

---
- hosts: "{{ deploy_hosts }}"
remote_user: ubuntu
tasks:
- name: copy execute file to dest
copy:
src: ../jx-callback
dest: /jxdata/jx-callback/jx-callback
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: cd /jxdata/jx-callback/conf && sed -i 's/runmode\s*=\s*.*/runmode = {{ runmode }}/' app.conf && sudo systemctl restart jx-callback