ansible远程切换用户执行命令

1
ansible test -l 10.0.10.1 -e "ansible_become_user=www" -m shell -a "/data/publish/publish.sh /"

 

posted @   行知散人  阅读(1975)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示