2015-01-27 2 views
0

Linux 제어 서버에서 Windows 7 클라이언트로 테스트 파일을 복사하려고했습니다. 내 각본은 ​​가능성있는 복사가 실패했습니다.

- name: Test Copy from Linux to Windows 
    hosts: Windows 
    gather_facts: false 
    tasks: 
    - name: Copy 
     copy: src=/tmp/tmp.txt dest=C:\Ansible 

그리고이 오류

failed: [10.8.0.4] => {"failed": true, "md5sum": "c9566265d534d0e3c666ea52daf96cc8", "parsed": false} 
invalid output was: The argument 'C:\Users\me.HOMEPC\AppData\Local\Temp\ansible-tmp-1422383762.86-109261083693479\\copy.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter. 


FATAL: all hosts have already failed -- aborting 

어떤 생각을 점점인가? 내가 어떻게이 일을 할 수 있니?

답변

0

Windows 및 atm에서 복사 모듈이 파일 복사 기능을 지원하지 않는 것처럼 보입니다. win_copy 모듈은 dev 단계에 있습니다. 나는 일이 중요

:-) 작업있어 다음

https://gist.github.com/tkinz27/fd92ba9af0e0309614ee

과 copy.ps1되어이 매우 유용한 모듈을 발견했다 그러나

: 당신은 당신의 윈도우 (7) 파워 쉘로 업그레이드 해 버전 4.0