TASK [set_fact] ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
task path: /etc/ansible/playbooks/test1/test.yml:22
[WARNING]: ansible_winrm_cert_validation unsupported by pywinrm (is an up-to-date version of pywinrm installed?)
ok: [servername] => {
"ansible_facts": {
"filename": [
"{",
" \"Name\": \"latest-ansible v0.1.zip\"",
"}"
]
},
"changed": false
}
TASK [debug] ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
task path: /etc/ansible/playbooks/test1/test.yml:23
[WARNING]: ansible_winrm_cert_validation unsupported by pywinrm (is an up-to-date version of pywinrm installed?)
ok: [servername] => {
"result": {
"changed": true,
"failed": false,
"rc": 0,
"stderr": "",
"stdout": "{\r\n \"Name\": \"latest-ansible v0.1.zip\"\r\n}\r\n",
"stdout_lines": [
"{",
" \"Name\": \"latest-ansible v0.1.zip\"",
"}"
]
}
}
TASK [debug] ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
task path: /etc/ansible/playbooks/test1/test.yml:24
[WARNING]: ansible_winrm_cert_validation unsupported by pywinrm (is an up-to-date version of pywinrm installed?)
ok: [servername] => {
"filename": [
"{",
" \"Name\": \"latest-ansible v0.1.zip\"",
"}"
]
}
TASK [copy files] *************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
task path: /etc/ansible/playbooks/test1/test.yml:26
[WARNING]: ansible_winrm_cert_validation unsupported by pywinrm (is an up-to-date version of pywinrm installed?)
The full traceback is:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/ansible/plugins/action/win_copy.py", line 398, in run
source = self._find_needle('files', source)
File "/usr/lib/python2.7/dist-packages/ansible/plugins/action/__init__.py", line 999, in _find_needle
return self._loader.path_dwim_relative_stack(path_stack, dirname, needle)
File "/usr/lib/python2.7/dist-packages/ansible/parsing/dataloader.py", line 322, in path_dwim_relative_stack
raise AnsibleFileNotFound(file_name=source, paths=[to_text(p) for p in search])
AnsibleFileNotFound: Could not find or access 'C:\Temp\"[u'{', u' "Name": "latest-ansible v0.1.zip"', u'}']"'
Searched in:
/etc/ansible/playbooks/test1/files/C:\Temp\"[u'{', u' "Name": "latest-ansible v0.1.zip"', u'}']"
/etc/ansible/playbooks/test1/C:\Temp\"[u'{', u' "Name": "latest-ansible v0.1.zip"', u'}']"
/etc/ansible/playbooks/test1/files/C:\Temp\"[u'{', u' "Name": "latest-ansible v0.1.zip"', u'}']"
/etc/ansible/playbooks/test1/C:\Temp\"[u'{', u' "Name": "latest-ansible v0.1.zip"', u'}']"
fatal: [servername]: FAILED! => {
"changed": false,
"dest": "C:\\Inetpub",
"msg": "Could not find or access 'C:\\Temp\\\"[u'{', u' \"Name\": \"latest-ansible v0.1.zip\"', u'}']\"'\nSearched in:\n\t/etc/ansible/playbooks/test1/files/C:\\Temp\\\"[u'{', u' \"Name\": \"latest-ansible v0.1.zip\"', u'}']\"\n\t/etc/ansible/playbooks/test1/C:\\Temp\\\"[u'{', u' \"Name\": \"latest-ansible v0.1.zip\"', u'}']\"\n\t/etc/ansible/playbooks/test1/files/C:\\Temp\\\"[u'{', u' \"Name\": \"latest-ansible v0.1.zip\"', u'}']\"\n\t/etc/ansible/playbooks/test1/C:\\Temp\\\"[u'{', u' \"Name\": \"latest-ansible v0.1.zip\"', u'}']\"",
"src": "C:\\Temp\\\"[u'{', u' \"Name\": \"latest-ansible v0.1.zip\"', u'}']\""
}
to retry, use: --limit @/etc/ansible/playbooks/test1/test.retry