ansible
- 13. 常⽤用模組
偵錯和測試類別
ping:看有沒連線成功
ansible services –m ping
debug:印簡單訊息
檔案類別模組
copy:複製檔案到遠端節點
template:從本機複製檔案並進⾏行行變數取代
file:設定檔案屬性
Linux上常⽤用操作
user:管理理使⽤用者帳⼾戶
yum:套件管理理指令
service:管理理服務
firewalld:管理理防火牆和通訊埠
執⾏行行shell指令
shell:在節點上執⾏行行shell
coommand:在遠端節點執⾏行行指令
觀察遠端主機系統變數
Setup: ansible –m setup