模块
查看模块
ansible-doc -l查看指定模块的帮助信息
ansible-doc -s MODULE
# 查看 MODULE 模块的帮助信息command 模块
ansible web_server -m command -a "hostname -I"shell 模块
ansible web_server -m shell -a "/server/scripts/time.sh"
# Shell脚本需要存在于远程主机上copy 模块
script 模块
cron 模块
Last updated