Ansible RSYNC任务失败

时间:2019-05-02 21:57:13

标签: ansible rsync

嗨,请看下面我使用rsync的繁琐任务失败。

        - name: Deploy Custom tar files xmls in to custom webinf dir.
          synchronize:
           src: '{{ BRANCH_DIR }}/tar/deploy'
           dest: '{{ SP_BASE }}/WEB-INF/config/custom'
           verify_host: no
           archive: yes
           mode: push 
           recursive: yes
           rsync_timeout: 300
          delegate_to: localhost 
          ignore_errors:        True

我遇到错误

 TASK [Deploy Custom tar files xmls in to custom webinf dir.] *******************
16:51:35 fatal: [tomcat-server -> localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/rsync --delay-updates -F --compress --timeout=300 --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --out-format=<<CHANGED>>%i %n%L /home/spadmin/iiq_install/code/AllAccess7.2/tar/deploy git@10.205.243.245:/prod/msp/domains/allaccess_domains/msp_allaccess_tomcat/webapps/identityiq/WEB-INF/config/custom", "msg": "Warning: Permanently added '10.205.243.245' (ECDSA) to the list of known hosts.\r\n\n###############\nWarning Message for System Access: Use of this system is restricted to authorized users of Capital One and its subsidiaries, and for authorized purposes. Users must have no expectation of privacy with respect to such usage. All software, data transactions and other electronic communications may be monitored without notice to the user. Programs, data and information contained herein are the property of Capital One and must be treated as strictly confidential. Unauthorized use is prohibited, and violators may be subject to disciplinary actions including loss of employment, civil and criminal prosecution.\n###############\n\nReceived disconnect from 10.205.243.245 port 22:2: Too many authentication failures\r\nAuthentication failed.\r\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]\n", "rc": 255}

0 个答案:

没有答案