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

23 lines
642 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
backup: yes
- name: copy conf file to dest
copy:
src: ../conf/app.conf
dest: /jxdata/jx-callback/conf/app.conf
owner: ubuntu
group: ubuntu
mode: 0555
backup: yes
- name: shell
shell: cd /jxdata/jx-callback/conf && sed -i 's/runmode\s*=\s*.*/runmode = {{ runmode }}/' app.conf && sudo systemctl restart jx-callback