- backup when copy files to remote to deploy.
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
owner: ubuntu
|
owner: ubuntu
|
||||||
group: ubuntu
|
group: ubuntu
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
backup: yes
|
||||||
- name: copy conf file to dest
|
- name: copy conf file to dest
|
||||||
copy:
|
copy:
|
||||||
src: ../conf/app.conf
|
src: ../conf/app.conf
|
||||||
@@ -16,5 +17,6 @@
|
|||||||
owner: ubuntu
|
owner: ubuntu
|
||||||
group: ubuntu
|
group: ubuntu
|
||||||
mode: 0555
|
mode: 0555
|
||||||
|
backup: yes
|
||||||
- name: shell
|
- name: shell
|
||||||
shell: cd /jxdata/jx-callback/conf && sed -i 's/runmode\s*=\s*.*/runmode = {{ runmode }}/' app.conf && 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
|
||||||
|
|||||||
Reference in New Issue
Block a user