Course Code: ansibleautointro
Duration: 7 hours
Prerequisites:

基本了解Linux/Unix命令熟悉SSH和基本网络概念

Overview:

課程目標:

  • 瞭解 Ansible 的基礎知識
  • 瞭解如何安裝和設定 Ansible
  • 探索 Ansible 的核心元件:Playbook、模組和清單
  • 使用 Ansible 實現自動化任務
  • 執行 Ansible Playbook 以管理和自動化遠端伺服器
Course Outline:

1. Ansible 簡介

  • Configuration Management 和自動化概述
    • 什麼是Configuration Management?
    • 自動化在 IT 運營中的重要性
  • 什麼是Ansible?
    • 歷史與演變
    • 主要特性和優勢
  • Ansible 建築學
    • 控制節點和受管節點
    • 清單和配置檔
    • 模組、外掛程式和 playbook
  • 動手練習

2. 設定 Ansible

  • 安裝 Ansible
    • 在不同的操作系統上安裝(Windows、macOS、Linux)
  • 設置環境
    • 配置控制節點
    • SSH 金鑰生成和分發
  • 動手練習

3. Ansible 基礎和自動化

  • 用於自動化的臨時命令
    • 運行簡單的 Ansible 命令
    • 使用常見的 Ansible 模組(ping、、、copycommandaptyum
  • 庫存 Management
    • 靜態庫存與動態庫存
    • 對主機進行分組
    • 主變數和組變數
  • 動手練習

4. 編寫你的第一本劇本

理論(20分鐘)

  • Playbooks 簡介
    • YAML 語法基礎知識
    • Playbook 結構:Plays、Tasks、Variables
  • 使用 Playbook 自動執行任務
    • 範例任務:安裝軟體、管理文件和服務
  • 動手練習
  • 任務控制
    • 添加處理程式和通知
    • 在任務中使用條件和迴圈

5. 高級 Playbook 概念

  • 結構化自動化的角色
    • 角色簡介
    • 創建和使用角色
  • 變數和事實
    • 定義和使用變數
    • 收集和利用事實
  • 範本
    • 使用 Jinja2 範本
    • 動態生成配置檔
  • 動手練習

6. 結論和後續步驟 

  • 今日回顧
    • 關於自動化的關鍵要點 Ansible
  • 進一步的學習資源
    • 書籍、教程和官方文檔
  • Q&A問答
Sites Published:

United Arab Emirates - Introduction to Ansible

Qatar - Introduction to Ansible

Egypt - Introduction to Ansible

Saudi Arabia - Introduction to Ansible

South Africa - Introduction to Ansible

Brasil - Introdução à Automação do Ansible

Canada - Introduction to Ansible

中国 - Introduction to Ansible

香港 - Introduction to Ansible

澳門 - Introduction to Ansible

台灣 - Introduction to Ansible Automation

USA - Introduction to Ansible

Österreich - Introduction to Ansible

Schweiz - Introduction to Ansible

Deutschland - Introduction to Ansible

Czech Republic - Introduction to Ansible

Denmark - Introduction to Ansible

Estonia - Introduction to Ansible

Finland - Introduction to Ansible

Greece - Introduction to Ansible

Magyarország - Introduction to Ansible

Ireland - Introduction to Ansible

Luxembourg - Introduction to Ansible

Latvia - Introduction to Ansible

España - Introducción a la Automatización de Ansible

Italia - Introduction to Ansible

Lithuania - Introduction to Ansible

Nederland - Introduction to Ansible

Norway - Introduction to Ansible

Portugal - Introdução à Automação do Ansible

România - Introduction to Ansible

Sverige - Introduction to Ansible

Türkiye - Introduction to Ansible

Malta - Introduction to Ansible

Belgique - Introduction to Ansible

France - Introduction to Ansible

日本 - Introduction to Ansible

Australia - Introduction to Ansible

Malaysia - Introduction to Ansible

New Zealand - Introduction to Ansible

Philippines - Introduction to Ansible

Singapore - Introduction to Ansible

Thailand - Introduction to Ansible

Vietnam - Introduction to Ansible

India - Introduction to Ansible

Argentina - Introducción a la Automatización de Ansible

Chile - Introducción a la Automatización de Ansible

Costa Rica - Introducción a la Automatización de Ansible

Ecuador - Introducción a la Automatización de Ansible

Guatemala - Introducción a la Automatización de Ansible

Colombia - Introducción a la Automatización de Ansible

México - Introducción a la Automatización de Ansible

Panama - Introducción a la Automatización de Ansible

Peru - Introducción a la Automatización de Ansible

Uruguay - Introducción a la Automatización de Ansible

Venezuela - Introducción a la Automatización de Ansible

Polska - Introduction to Ansible

United Kingdom - Introduction to Ansible

South Korea - Introduction to Ansible

Pakistan - Introduction to Ansible

Sri Lanka - Introduction to Ansible

Bulgaria - Introduction to Ansible

Bolivia - Introducción a la Automatización de Ansible

Indonesia - Introduction to Ansible

Kazakhstan - Introduction to Ansible

Moldova - Introduction to Ansible

Morocco - Introduction to Ansible

Tunisia - Introduction to Ansible

Kuwait - Introduction to Ansible

Oman - Introduction to Ansible

Slovakia - Introduction to Ansible

Kenya - Introduction to Ansible

Nigeria - Introduction to Ansible

Botswana - Introduction to Ansible

Slovenia - Introduction to Ansible

Croatia - Introduction to Ansible

Serbia - Introduction to Ansible

Bhutan - Introduction to Ansible

Nepal - Introduction to Ansible

Uzbekistan - Introduction to Ansible