1.ansible 使ç¨å¯ç ç»å½
ansible 使ç¨å¯ç ç»å½
å®è£ ansible1.å®è£ sshpass
apt :
æºç ï¼
å建ä¸ä¸ªhostsæ件ï¼æ·»å ç¨æ·å¯ç ,管理系统源码在哪认è¯sshè¿æ¥
2.é误æ±æ»ï¼
ansible -i hosts test -m ping
3.åå å解å³åæ³ï¼
ssh第ä¸æ¬¡è¿æ¥çæ¶åä¸è¬ä¼æ示è¾å ¥yes è¿è¡ç¡®è®¤ä¸ºå°keyå符串å å ¥å° ~/.ssh/known_hosts æ件ä¸ãèæ¬æºç~/.ssh/known_hostsæ件ä¸å¹¶æfingerprint key串
解å³æ¹æ³ï¼å¨ansible.cfgæ件ä¸æ´æ¹ä¸é¢çåæ°ï¼
æ§è¡shell å½ä»¤