Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

api-3_pushfile.yaml

  • 脚本内容
    - hosts: prod
      vars:
        project_path: /home/ubuntu/qin-server
      tasks:
        - name: push certs directory
          synchronize:
            src: "/home/ubuntu/pkg/files/certs/"
            dest: "{{ project_path }}/api-server/certs/"
            mode: push
        - name: Copy deployConfig.js
          copy:
            src: "/home/ubuntu/pkg/files/deployConfig.js"
            dest: "{{ project_path }}/api-server/deployConfig.js"
        - name: Copy .npmrc
          copy:
            src: "/home/ubuntu/pkg/files/.npmrc"
            dest: "{{ project_path }}/api-server/.npmrc"