Think before you speak, read before you think.

ansible script module

如果需要 shell 执行一些任务,可以写个脚本,直接使用

ansible all -i inventory.py -l 192.168.1.3 -m script -a show_ip.sh

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *