常用ad hoc命令, 如:
ansible raleigh -m shell -a 'echo $TERM'
ansible webservers -m service -a "name=httpd state=restarted"
from: http://ansible-tran.readthedocs.org/en/latest/docs/intro_adhoc.html
常用ad hoc命令, 如:
ansible raleigh -m shell -a 'echo $TERM'
ansible webservers -m service -a "name=httpd state=restarted"
from: http://ansible-tran.readthedocs.org/en/latest/docs/intro_adhoc.html