wechat_app_auth.yml
1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
#发布微信小程序的验证文件
- hosts: m.yohobuy.com
vars_files:
- vars.yml
tasks:
- name: 上传验证文件到m.yohobuy.com
copy:
src: "{{auth_file}}"
dest: /Data/node/yohobuywap-node/current/yohobuywap-node/public/static/
- hosts: union.yoho.cn
vars_files:
- vars.yml
tasks:
- name: 上传验证文件到union.yoho.cn
copy:
src: "{{auth_file}}"
dest: /Data/local/openresty-1.9.15.1/nginx/html/
owner: www
group: www
mode: 0644
- hosts: action.yoho.cn
vars_files:
- vars.yml
tasks:
- name: 上传验证文件到action.yoho.cn七牛云bucket并刷新缓存
shell: cd /root/txyang/qiniu/ && bash upload_ad-yoho-cn.sh {{auth_file}} {{dest_name}}
- hosts: feature.yoho.cn
vars_files:
- vars.yml
tasks:
- name: 上传验证文件到feature.yoho.cn七牛云bucket并刷新缓存
shell: cd /root/txyang/qiniu/ && bash upload_feature-yoho-cn.sh {{auth_file}} {{dest_name}}