wechat.cert.sync.yml 597 Bytes
---
# sync wechat cert.
# local cert dir: ~/.cert/wechatpay

- hosts: java-order, java-ufo-fore, java-extendstore

  vars_prompt:
    - name: "confirmation"
      prompt: "Start to sync cert files . Please Enter YES to continue"
      private: no
 
  
  tasks: 
    - name: "make sure user type YES to confirm"
      fail:
        msg: "user do not type YES"
      when: confirmation != 'YES'


    - name: copy wechat cert files to remote
      copy:
       src:  ~/.cert/wechatpay
       dest: /home/master/.cert
       owner: master
       group: master
       mode: 0444
 
  remote_user: root