Mastering Ansible Automation for Network Engineers

所在平台: Udemy

课程主页: https://www.udemy.com/course/ansible-course-for-network-engineers/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** 精通 Ansible 网络自动化 **课程概述:** 本课程将带您从零开始,深入学习 Ansible 网络自动化技术,直至高级水平。您将全面掌握 Ansible Playbook 和 Task 选项,即使没有编程经验也能轻松上手。课程全程采用 100% 实践演示,结合实际网络自动化场景,使用 VS Code 作为 IDE,并重点展示与 Cisco 设备(vIOS, IOS-XE)的交互。 **课程内容概览:** * **实验环境搭建:** * Ubuntu 虚拟机安装与 Ansible 环境配置 * VS Code for SSH 远程开发设置 * Python 虚拟环境中 Ansible 的安装 * Ansible Core 与 Community 区别 * Inventory 和 Config 文件设置 * **Ansible 核心概念:** * YAML 文件和 Playbook 基础 * Ansible Lint 使用 * SSH 密钥认证至 Cisco 设备 * Ansible Vault:文件和变量加密 * Ansible Vault ID * group_vars 和 host_vars:处理设备特定变量和配置 * **Ansible 高级特性:** * Ansible CLI 深入探索 * Cisco `ios_facts` 和 `ios_commands` 模块 * Cisco `ios_config` 模块详解 * Palo Alto 防火墙 Galaxy Collections:地址对象、对象组和安全规则自动化 * Cisco 配置差异、`parent` 命令、`before`、`after`、`match` 和 `replace` 选项 * Cisco IOS 配置备份选项 * Cisco IOS 资源模块:`interfaces`、`l3_interfaces`、`l2_interfaces`、`ios_user` 和 `static_route` 模块 * **CLI 解析器:** * pyATS、ntc_templates 和 TextFSM 解析器 * **Ansible 变量:** * Magic 变量:`hostvars` 和 `play_vars` * `set_fact` 与 `vars` 的区别 * Ansible 变量优先级详解 * **Ansible 过滤器:** * 常用过滤器:`default`、`ternary`、`dict2items`、`items2dict`、`to_json`、`from_json`、`to_yaml`、`from_yaml`、`zip`、`combine`、`map`、`json_query (JMES Path)`、`ip_address`、`url`、`datetime` * 列表操作和字符串处理 * 正则表达式过滤器:`regex_search`、`find_all`、`replace` * **Jinja2 模板:** * Jinja2 循环 (`for`) 和 `include` 选项 * Jinja2 在 `ios_config` 模块中的应用 * 在 Jinja2 模板中嵌入代码 * **Lookup 插件:** * `file`、`template`、`vars`、`env` 和 `pipe` lookup 插件 * **Loops 和 Conditionals:** * `loops`、`until` 和 `when` * **Play 选项:** * Ansible Play 策略、`forks` 和 `serial` * `debugger` 用于有效排错 * `host_order`、`log_path`、`tags` 和 `limit` 选项 * `check_mode` Task 选项 * `delegate_to`、`run_once`、`ignore_errors` 和 `failed_when` * `changed_when` 和 `no_log` * `handlers` 和 `listen` 选项 * `block` 和 `rescue` 用于异常处理 * `assert` 选项 * **Ansible Collections:** * 使用 `galaxy` 命令、`requirements` 文件和 GitHub 安装 Collections * **Ansible Roles:** * 创建 Roles 并将 Tasks 添加到相应目录 * `include` vs `import` 的详细解释 * `include_tasks` vs `import_tasks` * `include_role` vs `import_role` * `import_playbook` 模块 * **Ansible 自定义模块:** * 创建自定义模块 * 使用 Python CSV 后端将 Facts 转换为 CSV 文件 * 向自定义模块传递参数 * 通过自定义模块返回数据 * **Ansible 与 REST API:** * 使用 `uri` 模块操作 REST API * YANG Suite 简介 * Postman REST API 演示 * 将 POSTMAN REST 请求转换为 Ansible URI 任务 * 从 Ansible 发起 REST GET、PUT、POST、PATCH 和 DELETE 操作 * 使用 REST API 配置 Cisco 设备 * 使用 REST API 保存配置 * 使用 REST API 解析配置 * **额外的学习主题:** * **AWX:** * 在 Minikube 中安装 AWX 进行学习 * **Ansible 执行环境基础:** * Podman 简介

课程评论(0条)

课程详情

Learn Ansible Automation skills from scratch to an advanced level for automating your Network.Gain an in-depth understanding of Ansible Playbook and Task OptionsFor attending this course you don't need any prior coding experience.100% Hands-on demonstration of the concepts using Network Automation UsecasesThe IDE is VS Code and Cisco devices will be used for demonstrating most of the device interactions.(vIOS, IOS-XE)Below are the topics in high levelThe course will be starting with how to setup Lab for Ansible Network Automation PracticeInstall and Setup Ubuntu OS VM for ansibleSetup VSCode for SSH remote developmentAnsible installation in the Python VIrtual EnvironmentAnsible Core and Community difference Inventory and Config file setupYAML File ,Playbook fundamentals and Ansible LintSSH Keybased Authentication to Cisco devices from AnsibleAnsible Vault for encrypting files and variablesDemonstration of Ansible Vault IDgroup_vars and host_vars Handle device specific variables and configurations effectivelyExplore advanced features of Ansible CLIcisco ios_facts and ios_commands module cisco ios_config module explained in detailPaloAlto Firewall Galaxy Collections ExamplesPaloAlto Address Objects, Object Groups and Security Rule automation using AnsibleCisco config diff, parent command, before, after, match and replace optionsios config backup optionsConfiguration backup and save optionCisco ios resource modulescisco interfaces, l3_interfaces and l2_interfaces resource modulecisco ios_user and static_route moduleCLI ParserspyATS, ntc_templates and TextFSM ParsersAnsible Magic Variableshostvars and play_varsset_fact vs vars explainedAnsible Variable precedence explained in detailAnsible filter Pluginsdefault, ternary, dict2items, items2dict filtersto_json, from_json, to_yaml, from_yaml filterszip, combine, map,json_query(using JMES Path) filtersip_address, url and datetime filterslist operations and string manipulation using filtersRegEX FiltersRegex search, find_all and replace filtersJinja2 templates examplejinja2 for loop and include optionjinja2 in ios_config moduleembed code in jinja2 templatelookup Pluginsfile lookup, template lookup pluginsvars, env and pipe lookup pluginsLoops and Conditionals: loops, until and when Play Optionsansible play strategies, forks and serialdebugger for effective troubleshootinghost order, log_pathtags and limit optioncheck_mode Task Optionsdelegate_torun_onceignore_erros and failed whenchanged_when and no_loguse handlers and listen optionblock and rescue for exception handlingassert optionHow to install ansible collections: using galaxy command, requirements file and githubHow to create roles and add tasks to respective directoriesDetailed explanation of ansible include vs importinclude_tasks vs import tasksinclude_role vs import roleimport_playbook modulehow to create ansible custom modulesconvert facts to csv file using custom module which uses python csv in the backendhow to pass module args to custom modulehow to return data using custom moduleREST API from Ansiblehow to use URI Module for REST APIYANG Suite introductionREST API from PostmanConvert POSTMAN REST request to Ansible URI taskInitiate REST - GET, PUT,POST PATCH and DELETE Operations from AnsibleHow to configure Cisco device using REST APIhow to save config using rest APIParse config using REST APIExtra Learning Topic(AWX)Install AWX in Minikube for learningBasics of Ansible execution environment (Podman)

课程标签

0人关注该课程

主题相关的课程