Advanced Lab of ansible
主要描述在正式環境使用上,使用的資料夾結構跟各個資料夾放的檔案功能,例如roles底下的files,handlers,tasks,templates,vars資料夾,以及host_vars,group_vars這幾個定義變數地方的用法.另外講檢查指令ansible-inventory -i hosts --list,跟ansible-playbook playbook.yml --check --diff這兩個選項,ansible-inventory -i hosts --list可以檢查ansible有吃到哪些變數,--check --diff可以先preview看ansible執行後會做的動作並看文檔異動狀況!
Advanced module of ansible
To install Filebeat through Ansible, you can follow these steps,Set up your Ansible environment->Create an Ansible playbook->Define the inventory->Write the pllaybook tasks->Check the changes is proper or not ->Run the playbook.
Basic introduction of ansible
ansible 是組態管理工具 Configuration management Tool ,含有自動化工具,配置系統、部署軟件和編排更高級的 IT 任務,例如持續部署或零停機滾動更新.此部分主要是用官網的介紹內容,寫下個人了解後的筆記,跟做lab的紀錄!