ansible 安装和使用
生活随笔
收集整理的這篇文章主要介紹了
ansible 安装和使用
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
## 安裝epel 源:
1 rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm## 安裝ansible 服務端:
1 yum install ansible -y## ssh-keygen ?生成秘鑰文件:
1 ssh-keygen -t rsa 2 一路回車...... 3 cd /root/.ssh/ && ll ./*## 配置ansible ?的hosts 文件:
1 vim /etc/ansible/hosts 2 [web_group] 3 192.168.8.101## 添加客戶端使用ssh 方式:
1 ssh-copy-id -i /root/.ssh/id_rsa.pub 192.168.8.101## ?測試所有連接的客戶端:
1 ansible all -a 'who'?
?
?
?
轉自:http://www.cnblogs.com/zhenxing06/p/5865539.html
?
轉載于:https://www.cnblogs.com/pyshell/p/7427078.html
《新程序員》:云原生和全面數(shù)字化實踐50位技術專家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的ansible 安装和使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 算法入门经典第六章 例题6-8 树
- 下一篇: Spring Boot实战pdf