- backup when copy files to remote to deploy.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
owner: ubuntu
|
||||
group: ubuntu
|
||||
mode: 0755
|
||||
backup: yes
|
||||
- name: copy conf file to dest
|
||||
copy:
|
||||
src: ../conf/app.conf
|
||||
@@ -16,5 +17,6 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user