wechat_app_auth.yml 1012 Bytes
---
#发布微信小程序的验证文件

- 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}}