例:将http://nginx.org/download/nginx-1.6.3.tar.gz文件下载到指定节点的/tmp 目录下

[root@master tmp]# ansible client01 -m get_url -a 'url=http://nginx.org/download/nginx-1.6.3.tar.gz dest=/tmp'
client01 | SUCCESS => {
    "changed": true, 
    "checksum_dest": null, 
    "checksum_src": "7ee99f16e91e655eb555d5f684155fc2a1f23b4f", 
    "dest": "/tmp/nginx-1.6.3.tar.gz", 
    "gid": 0, 
    "group": "root", 
    "md5sum": "ea813aee2c344c2f5b66cdb24a472738", 
    "mode": "0644", 
    "msg": "OK (805253 bytes)", 
    "owner": "root", 
    "size": 805253, 
    "src": "/tmp/tmpegeq09", 
    "state": "file", 
    "uid": 0, 
"url": http://nginx.org/download/nginx-1.6.3.tar.gz

[root@client01 ~]# ll /tmp/nginx-1.6.3.tar.gz
-rw-r--r-- 1 root root 805253 May 13 14:15 /tmp/nginx-1.6.3.tar.gz