Ansible's Get_url module

Source: Internet
Author: User
Tags gz file
Example: Download the http://nginx.org/download/nginx-1.6.3.tar.gz file to the/tmp directory of the specified node

[[email protected] 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

[Email protected] ~]# ll/tmp/nginx-1.6.3.tar.gz
-rw-r--r--1 root root 805253 may 14:15/tmp/nginx-1.6.3.tar.gz

Ansible's Get_url module

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.