Unlock the power of automation with Ansible and Ansible Playbooks in this comprehensive course designed to elevate your IT infrastructure management skills. Through step-by-step guidance, you will master Ansible's agentless architecture, efficient task execution, and powerful automation capabilities to streamline your workflows.

Ansible and Ansible-Playbooks for Automation
访问权限由 Coursera Learning Team 提供
推荐体验
推荐体验
中级
IT professionals with basic Linux command-line knowledge will benefit. Beginners to automation are welcome.
推荐体验
推荐体验
中级
IT professionals with basic Linux command-line knowledge will benefit. Beginners to automation are welcome.
您将学到什么
Implement agentless automation for infrastructure management with Ansible.
Create and execute dynamic Ansible playbooks for complex workflows.
Integrate secure practices using Ansible Vault and SSH keys.
Leverage loops, templates, and roles to enhance task efficiency and reusability.
您将获得的技能
要了解的详细信息

添加到您的领英档案
36 项作业
了解顶级公司的员工如何掌握热门技能

该课程共有36个模块
In this module, we will explore the foundational concepts of Ansible. You will gain insights into its capabilities, understand the differences between its core and community editions, and learn how its architecture facilitates secure and efficient automation.
涵盖的内容
3个视频1篇阅读材料
3个视频•总计16分钟
- Introduction to Ansible•4分钟
- Ansible Core Versus Ansible Community•7分钟
- How Ansible Works?•5分钟
1篇阅读材料•总计10分钟
- Full Course Resources•10分钟
In this module, we will guide you through setting up the environment required for Ansible. From provisioning servers to configuring the controller node and understanding Ansible's agentless operations, this section ensures a strong foundation for further automation.
涵盖的内容
8个视频1个作业
8个视频•总计49分钟
- Launching Required Nodes / Servers for Ansible Setup•2分钟
- Launching Ansible-Controller Node - CentOS9 Node from Windows WSL2•11分钟
- Installing Ansible-Core on CentOS9 with Python Version 3.9.x•3分钟
- Ansible Configuration to Work with Managed Nodes•21分钟
- Why Ansible Is Called Agentless Tool•2分钟
- Creating userId on Ansible Controller and Switching to ansadmin from userid•6分钟
- Simple Ansible Architecture•2分钟
- How to Get the Latest File or Directory from Current Location?•3分钟
1个作业•总计15分钟
- Environment Setup - Assessment•15分钟
In this module, we will focus on Ansible's ad-hoc commands, an essential feature for executing tasks quickly and efficiently. You’ll learn how to leverage modules and handle complex commands with quotations and arguments.
涵盖的内容
4个视频1个作业
4个视频•总计30分钟
- Introduction to Ansible Ad-Hoc Commands with Modules | Commands for Modules•15分钟
- Ansible Ad-Hoc Commands to Execute Any Unix/Linux Commands•5分钟
- Handling Arguments with Quotations•2分钟
- What Is the Backend Story to Execute Ansible Ad-Hoc Commands?•7分钟
1个作业•总计15分钟
- Ad-Hoc Commands with Modules - Assessment•15分钟
In this module, we will delve into file management using Ansible ad-hoc commands. By mastering the file-related modules, you will learn to handle tasks such as file creation, modification, and retrieval across managed nodes seamlessly.
涵盖的内容
6个视频1个作业
6个视频•总计32分钟
- List of File Modules to Work with files|file, Copy, lineinfile, blockinfile…•5分钟
- Ansible Ad-Hoc Commands with File Module to Create a File on Managed Nodes•6分钟
- Ansible Ad-Hoc Commands with stat Module•3分钟
- Ansible Ad-Hoc Commands with Copy Module•6分钟
- Ansible Ad-Hoc Commands with lineinfile Module to Append/Replace/Delete Lines•8分钟
- Ansible Ad-Hoc Command with Fetch Module to Download from Managed Nodes•4分钟
1个作业•总计15分钟
- Ansible Ad-Hoc Command to Work with Files - Assessment•15分钟
In this module, we will learn to install software packages on different OS families using Ansible. You will gain hands-on experience with yum and apt modules to ensure consistent package management across diverse environments.
涵盖的内容
1个视频1个作业
1个视频•总计6分钟
- Ansible Ad-Hoc Commands with yum and apt Modules to Install Packages•6分钟
1个作业•总计15分钟
- Installing Packages on Different OS Families - Assessment•15分钟
In this module, we will explore how to run Ansible ad-hoc commands on the controller node itself. This knowledge is essential for tasks requiring local execution or testing configurations before deployment.
涵盖的内容
1个视频
1个视频•总计2分钟
- Executing Ansible Ad-Hoc Commands on Ansible Controller Node Itself•2分钟
In this module, we will focus on the idempotent nature of Ansible tasks. You will understand why predictable outputs are critical in automation and how to interpret task results to ensure reliable execution.
涵盖的内容
1个视频1个作业
1个视频•总计3分钟
- Why Ansible Operations or Tasks Are Called Idempotent?•3分钟
1个作业•总计15分钟
- Understanding the Output of Ansible Ad-Hoc Commands Output - Assessment•15分钟
In this module, we will guide you through executing ad-hoc commands with real-time user credentials. Learn how Ansible manages authentication securely and efficiently while maintaining compliance with best practices.
涵盖的内容
1个视频1个作业
1个视频•总计12分钟
- Executing Ansible Ad-Hoc Commands with Your Real-Time User ID and Password•12分钟
1个作业•总计15分钟
- Executing Ansible Ad-Hoc Commands with Your User ID and Password - Assessment•15分钟
In this module, we will explore Ansible inventory files. You will learn how to structure inventories to handle multiple environments, categorize hosts, and optimize automation workflows.
涵盖的内容
2个视频1个作业
2个视频•总计13分钟
- Inventory File(s) to Work with Multiple Environments•9分钟
- Types of Ansible Inventory Files•3分钟
1个作业•总计15分钟
- Ansible Inventory File(s) - Assessment•15分钟
In this module, we will focus on Ansible configuration files. You will understand how configuration settings are applied and how to manage these files to customize Ansible behavior effectively.
涵盖的内容
1个视频1个作业
1个视频•总计5分钟
- Multiple Locations of Ansible Configuration Files and Their Priority•5分钟
1个作业•总计15分钟
- Ansible Configuration File(s) - Assessment •15分钟
In this module, we will learn to enhance automation capabilities by embedding Ansible commands in shell scripts. This powerful combination enables you to handle intricate tasks with ease and precision.
涵盖的内容
1个视频1个作业
1个视频•总计3分钟
- How to Use Ansible Ad-Hoc Commands in Shell Scripts•3分钟
1个作业•总计15分钟
- Using Ansible Ad-hoc Commands in Shell Scripts - Assessment•15分钟
In this module, we will explore Ansible facts. You will learn how to use default facts and create custom facts to gather detailed information about your infrastructure for better automation strategies.
涵盖的内容
2个视频1个作业
2个视频•总计9分钟
- Ansible Default Facts with setup Module•4分钟
- How to Create Custom Facts Based on Requirement•5分钟
1个作业•总计15分钟
- Exploring Ansible Facts•15分钟
In this module, we will be introduced to Ansible playbooks, a cornerstone of automation. You will understand their structure, create your first playbook, and learn to verify syntax before execution.
涵盖的内容
5个视频1个作业
5个视频•总计35分钟
- Introduction to Playbooks and Why We Need Playbooks•11分钟
- How to Use Visual Studio Code Editor to Develop Ansible Playbooks•4分钟
- First Playbook•14分钟
- Executing Playbooks on Ansible Controller Node Itself•2分钟
- Commands to Verify the Playbook Syntax•4分钟
1个作业•总计15分钟
- Introduction to Playbooks•15分钟
In this module, we will cover foundational concepts for developing playbooks. From variables to YAML scripting, you will gain the skills to create adaptable and efficient automation scripts.
涵盖的内容
8个视频1个作业
8个视频•总计51分钟
- Introduction to Ansible Custom Variables•11分钟
- Data Types of Variables•7分钟
- Data Structures of YAML Scripting•6分钟
- Read Variable Values from a File•5分钟
- Passing Variable(s) Value(s) from Command-Line•4分钟
- Usage of vars_prompt Section in Playbooks•5分钟
- host_vars and group_vars•11分钟
- Debug Module with vars and msg Arguments•3分钟
1个作业•总计15分钟
- Basic Concepts to Develop Playbooks - Assessment•15分钟
In this module, we will delve into variable management in playbooks. Learn to register task outputs and redefine variables mid-playbook for seamless and dynamic automation workflows.
涵盖的内容
2个视频1个作业
2个视频•总计9分钟
- Ansible Register Variable - To Capture the Output of a Task into Variable•6分钟
- Ansible Set Fact Variables - Define or Redefine Variable(s) in Between the Tasks•2分钟
1个作业•总计15分钟
- Registered and setfacts Variables - Assessment•15分钟
In this module, we will explore various operations on variables in playbooks. You will learn to manipulate data using operators and filters, enhancing your ability to create dynamic and responsive playbooks.
涵盖的内容
11个视频1个作业
11个视频•总计35分钟
- Types of Operators | Operations on Variables•1分钟
- Arithmetic Operators•2分钟
- Filters and Methods Usage to Manipulate Data - Variable Data or Direct Data•5分钟
- Comparison Operators | Equal, Not-Equal, Greater, Lesser…•2分钟
- Membership Operators•2分钟
- Logical Operators•1分钟
- Test Operators•3分钟
- Operations on List or Sequence•8分钟
- Operations on Strings•4分钟
- Operations on Dictionaries or Maps•5分钟
- Points to Remember•2分钟
1个作业•总计15分钟
- Operations on Variables - Assessment•15分钟
In this module, we will master conditional statements in playbooks. From when clauses to in-line logic, you’ll learn to create adaptable and context-aware automation scripts.
涵盖的内容
2个视频1个作业
2个视频•总计10分钟
- Conditional Statement with when•4分钟
- In-Line Conditional Statement with if-else•6分钟
1个作业•总计15分钟
- Operations on Variables - Assessment•15分钟
In this module, we will practice creating basic playbooks. These exercises will reinforce your understanding of core playbook concepts and help you apply them in real-world scenarios.
涵盖的内容
4个视频1个作业
4个视频•总计32分钟
- Design Simple Arithmetic Calculator•8分钟
- Simple Playbook to Find the Python Version•8分钟
- Playbook to Find the Java Version•8分钟
- Playbook to Execute Any Command•8分钟
1个作业•总计15分钟
- Ansible Playbooks to Practice on Basic Concepts - Assessment•15分钟
In this module, we will deepen our understanding of Ansible facts. Learn to gather and utilize system-level information for advanced playbook automation.
涵盖的内容
3个视频1个作业
3个视频•总计17分钟
- Working with Ansible Facts (Default Facts) Using Playbooks•5分钟
- Service or Systemd Facts with service_facts Module•7分钟
- inventory_hostname and hostvars•5分钟
1个作业•总计15分钟
- Ansible Facts (Default Facts) and Systemd Facts - Assessment•15分钟
In this module, we will learn about privilege escalation in Ansible. You will understand how to execute tasks as different users or with elevated privileges safely and efficiently.
涵盖的内容
1个视频1个作业
1个视频•总计8分钟
- Usage of become, become_user, and become_method•8分钟
1个作业•总计15分钟
- Usage of become and become_user - Assessment•15分钟
In this module, we will explore task reusability. Learn how to use import_tasks and include_tasks to streamline your playbook development and ensure maintainability.
涵盖的内容
4个视频1个作业
4个视频•总计30分钟
- Installing Given Package Based on OS Family•7分钟
- Install a Package Based on Managed Nodes Package Managers•6分钟
- Write a Playbook to Install Any Package(s)•9分钟
- How to Reuse Ansible-Tasks with import_tasks and include_tasks•8分钟
1个作业•总计15分钟
- Installing Packages | Task Reusability with import_tasks and include_tasks - Assessment•15分钟
In this module, we will cover handlers, a powerful feature in Ansible. You’ll learn to create and manage handlers to execute tasks based on specific triggers, adding flexibility to your automation.
涵盖的内容
1个视频1个作业
1个视频•总计10分钟
- How to Use Handlers and When Handlers Execute•10分钟
1个作业•总计15分钟
- Efficient Use of Ansible Handlers - Assessment•15分钟
In this module, we will focus on the use of tags in playbooks. You will learn to execute only the necessary tasks, improving efficiency and precision in automation.
涵盖的内容
1个视频1个作业
1个视频•总计5分钟
- How to Use Tags to Execute Tasks•5分钟
1个作业•总计15分钟
- Usage of Tags to Execute Required Tasks - Assessment•15分钟
In this module, we will learn error-handling strategies in Ansible. From basic error handling to advanced constructs like block and rescue, you’ll ensure robust and fail-safe automation.
涵盖的内容
2个视频1个作业
2个视频•总计22分钟
- Error Handling | Part-1•7分钟
- Error Handling with block and rescue and Also Grouping Multiple Tasks | Part-2•15分钟
1个作业•总计15分钟
- Error Handling - Assessment•15分钟
In this module, we will explore Ansible logging. You’ll learn to capture task outputs and playbook execution details in log files, enabling effective debugging and auditing.
涵盖的内容
1个视频1个作业
1个视频•总计4分钟
- Capturing the Output of Ansible Ad-Hoc Commands and Playbooks into a Log File•4分钟
1个作业•总计15分钟
- Ansible Logging - Assessment•15分钟
In this module, we will explore advanced options like remote_src, delegate_to, and run_once. These features enable precise task control and efficient resource utilization.
涵盖的内容
2个视频1个作业
2个视频•总计34分钟
- Install and Set JAVA_HOME as Environment Variable for All Applications•19分钟
- Playbook to Set JAVA_HOME for Any Open JDK with Valid URL•15分钟
1个作业•总计15分钟
- Ansible Playbook for JAVA_HOME setup - Assessment•15分钟
In this module, we will create a comprehensive playbook combining various advanced features. You will see how to use tags, blocks, and handlers together to solve real-world automation challenges.
涵盖的内容
1个视频1个作业
1个视频•总计23分钟
- Simple Real-Time Ansible Playbook with the Combination of Tags, Block and Handlers•23分钟
1个作业•总计15分钟
- Simple Real-Time Ansible Playbook - Assessment•15分钟
In this module, we will explore the power of loops in playbooks. Learn to handle repetitive tasks and work with data structures like lists and dictionaries to simplify automation.
涵盖的内容
4个视频1个作业
4个视频•总计21分钟
- Introduction to Loops•5分钟
- Loops to Work with List•1分钟
- Installing Multiple Packages with Loops•2分钟
- Loops to Work Dictionaries•12分钟
1个作业•总计15分钟
- Loops for Ansible Playbooks - Assessment 26•15分钟
In this module, we will learn to work with the template module. You’ll create dynamic, environment-specific configuration files that adapt seamlessly to changing requirements.
涵盖的内容
2个视频1个作业
2个视频•总计14分钟
- Introduction to Template Module•8分钟
- Template File with Variables, Conditions, and Loops•6分钟
1个作业•总计15分钟
- Working with Templates - Assessment•15分钟
In this module, we will introduce Ansible plugins. You’ll understand how plugins extend functionality and streamline complex automation scenarios.
涵盖的内容
1个视频1个作业
1个视频•总计3分钟
- What Is an Ansible Plugin and How to List Required Plugins?•3分钟
1个作业•总计15分钟
- Introduction to Plugin - Assessment•15分钟
In this module, we will explore third-party collections and modules. Learn to expand Ansible’s capabilities by integrating community-contributed resources effectively.
涵盖的内容
1个视频1个作业
1个视频•总计11分钟
- Installing Required Collections or Required Module from Required Namespace•11分钟
1个作业•总计15分钟
- Working with Third-Party or Ansible Community Collections or Modules - Assessment•15分钟
In this module, we will focus on dynamic inventory management. Discover how to use plugins to manage AWS resources dynamically and streamline inventory handling.
涵盖的内容
2个视频1个作业
2个视频•总计31分钟
- Ansible Dynamic Inventory for AWS with Plugin•15分钟
- Ansible Dynamic Inventory and Working with Managed Nodes Using Default ec2-us•16分钟
1个作业•总计15分钟
- Ansible Dynamic Inventory with Plugins - Assessment•15分钟
In this module, we will explore Ansible roles. Learn how to simplify playbook organization by structuring tasks into reusable roles for improved clarity and scalability.
涵盖的内容
1个视频1个作业
1个视频•总计13分钟
- Introduction to Ansible Roles•13分钟
1个作业•总计15分钟
- Ansible Roles - Assessment•15分钟
In this module, we will learn about Ansible Vault. You’ll gain the skills to encrypt sensitive information and manage secrets securely within your automation workflows.
涵盖的内容
1个视频1个作业
1个视频•总计14分钟
- How to Use Ansible Vault to Encrypt Secrets•14分钟
1个作业•总计15分钟
- Using Ansible Vault for Secure Playbook Management - Assessment•15分钟
In this module, we will explore the Raw module. Learn to manage systems without Python installed and execute commands directly on target nodes efficiently.
涵盖的内容
1个视频1个作业
1个视频•总计4分钟
- Working with Managed Nodes if Managed Nodes Are Installed with Python•4分钟
1个作业•总计15分钟
- Raw Module - Assessment•15分钟
In this module, we will set up a real-time Ansible project. From directory structures to secure authentication methods, you’ll prepare a robust foundation for managing live server environments.
涵盖的内容
4个视频3个作业
4个视频•总计31分钟
- Different Cases to Work with Remote Servers or Managed Nodes•2分钟
- Directory Structure for Real-Time Project•4分钟
- Working with User ID and Password for Ansible Ad-Hoc Commands and Playbooks•15分钟
- Working with SSH Keys for Ansible Ad-Hoc Commands and Playbooks•11分钟
3个作业•总计90分钟
- Ansible Project Setup for Real Time to Work with Servers - Assessment•15分钟
- Full Course Assessment•60分钟
- Full Course Practice Assessment•15分钟
位教师

提供方

提供方

Packt helps tech professionals put software to work by distilling and sharing the working knowledge of their peers. Packt is an established global technical learning content provider, founded in Birmingham, UK, with over twenty years of experience delivering premium, rich content from groundbreaking authors on a wide range of emerging and popular technologies.
人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.

Jennifer J.

Larry W.

Chaitanya A.
从 Information Technology 浏览更多内容
WWhizlabs
课程
BBoard Infinity
课程

课程

