I am unable to download a file from ftp site. my yml file is as below
---
- hosts: all
tasks:
- name: FTP download
get_url:
url=ftp://ftp:[email protected]/pub/PRODUCTS/MR/12.22_MR/product.tar
dest=/Agent/agent.tar use_proxy=no validate_certs=no
My /etc/ansible/hosts file contains a remote host name where the Agent
directory is already present
But the failure message shows as
fatal: [remote-host.net]: FAILED! => {"changed": false, "dest":
"/Agent/agent.tar", "failed": true, "invocation": {"module_args":
{"backup": false, "checksum": "", "content": null, "delimiter": null,
"dest": "/Agent/agent.tar", "directory_mode": null, "follow": false,
"force": false, "force_basic_auth": false, "group": null, "headers": null,
"http_agent": "ansible-httpget", "mode": null, "owner": null, "regexp":
null, "remote_src": null, "selevel": null, "serole": null, "setype": null,
"seuser": null, "sha256sum": "", "src": null, "timeout": 10, "tmp_dest":
"", "url": "ftp://ftp:[email protected]/pub/PRODUCTS/MR/12.22_MR/product.tar",
"url_password": null, "url_username": null, "use_proxy": false,
"validate_certs": false}, "module_name": "get_url"}, "msg": "Request
failed", "response": "OK (817817600 bytes)", "state": "absent",
"status_code": null, "url":
"ftp://ftp:[email protected]/pub/PRODUCTS/MR/12.22_MR/product.tar"}
Pls help me out
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/923c0ffd-f92c-45f1-9283-6dacd0033988%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.