跳到主要内容

ansible模块-下载模块

ansible查看帮助方法

# 查看所有模块帮助信息
ansible-doc -l

# 指定查看某个模块参数用法
ansible-doc copy

1.get_url模块

ansible all -m get_url -a "url=https://mirrors4.tuna.tsinghua.edu.cn/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-agent-5.0.0-1.el7.x86_64.rpm dest=/opt"

get_url模块参数

参数说明
url指定要下载的url地址
dest指定将url下载至哪
Right Bottom Gif
Right Top GIF