Ansible
从第一个清单文件到多主机部署,学习 Ansible。涵盖 Playbook、角色、模板、Vault 以及幂等自动化。
共 12 节,按顺序
- 120 分钟
什么是 Ansible
Configuration managementAgentless automationIdempotencyControl nodeManaged nodesPlaybooks vs scripts - 225 分钟
Inventory 与 Ad Hoc 命令
Inventory fileHost groupsAd hoc commandsAnsible pingAnsible -mAnsible -a - 330 分钟
你的第一个 Playbook
Playbook structurePlaysHostsTasksBecomeAnsible-playbook command - 430 分钟
Task、Module 和 Handler
TasksModulesHandlersNotifyChanged_whenService restart pattern - 530 分钟
变量与 Facts
Variables in playbooksVars filesGroup_varsHost_varsFactsVariable precedence basics - 630 分钟
使用 Jinja2 的模板
Template moduleJinja2 expressionsFiltersIf blocks in templatesFor loops in templates - 730 分钟
循环与条件语句
Loop keywordLoop with dictsWhen conditionalsRegisterBlock and rescue basics - 835 分钟
Roles 与 Galaxy
Role structureTasks/main.ymlDefaultsTemplates folderInclude_roleAnsible-galaxy install - 925 分钟
Vault 与密钥
Ansible-vault encryptAnsible-vault editVault password fileEncrypted variablesVault id labels - 1025 分钟
标签与调试
Tags on tasks and roles--tags and --skip-tags--start-at-taskVerbose flagsDebug moduleAnsible-playbook --check --diff - 1125 分钟
Collections 与 Plugins
CollectionsFQCNAnsible-galaxy collection installRequirements.yml for collectionsFilter plugins overviewLookup plugins overview - 1260 分钟
综合实战:多主机部署
Multi-play playbooksRoles in productionGroup_vars by environmentVault for secretsSerial and rolling updatesPutting it all together
用你的语言学习 Ansible
每一节课、测验和导师回复都以你的语言显示。AI 导师会用你提问的语言来回答。
Roles that use Ansible
See how hiring teams interview engineers on Ansible, in production-like environments.
Infrastructure Engineer
Hire infrastructure engineers who design systems your team can rely on. Interview them in real workspaces with Terraform, Ansible, cloud APIs and live failure scenarios.
See the interviewDevOps Engineer
Hire DevOps engineers who actually ship. Run live or take-home interviews in production-like Linux environments with Docker, Kubernetes, Terraform and CI/CD. See how they debug, automate, and work alongside AI.
See the interviewPlatform Engineer
Hire platform engineers who reduce friction for every team. Real golden-path templates, real internal CLIs, real service onboarding flows. We record every step.
See the interview