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 å½ä»¤
2024-12-22 15:04
2024-12-22 14:59
2024-12-22 14:48
2024-12-22 13:45
2024-12-22 13:18
2024-12-22 12:43