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、、copycommand、、aptyum
  • 库存 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