Top Related Projects
Ansible for DevOps examples.
A few starter examples of ansible playbooks, to show features and how they work together. See http://galaxy.ansible.com for example roles from the Ansible community for deploying many popular applications.
ansible-lint checks playbooks for practices and behavior that could potentially be improved and can fix some of the most common ones for you
AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Quick Overview
The ansible/workshops
repository is a collection of Ansible workshops and training materials. It provides a comprehensive set of hands-on exercises and examples to help users learn and practice Ansible, a popular open-source automation tool.
Pros
- Comprehensive Content: The repository offers a wide range of workshops covering various Ansible topics, from beginner to advanced levels, making it suitable for users of all skill levels.
- Interactive Learning: The workshops include step-by-step instructions, code examples, and interactive exercises, allowing learners to actively engage with the material.
- Community-Driven: The project is maintained by the Ansible community, ensuring the content is up-to-date and reflects the latest Ansible best practices.
- Adaptable: The workshops can be easily customized and adapted to fit the specific needs of different organizations or training environments.
Cons
- Requires Ansible Knowledge: The workshops assume a certain level of familiarity with Ansible, which may be a barrier for complete beginners.
- Maintenance Overhead: Keeping the workshops up-to-date with the latest Ansible releases and features can be a continuous effort for the maintainers.
- Limited Hands-on Exercises: While the workshops provide a good foundation, they may not offer a comprehensive set of hands-on exercises for all Ansible use cases.
- Potential Outdated Content: As Ansible evolves, some of the workshop content may become outdated, requiring regular updates.
Getting Started
To get started with the Ansible workshops, follow these steps:
-
Clone the
ansible/workshops
repository:git clone https://github.com/ansible/workshops.git
-
Navigate to the cloned repository:
cd workshops
-
Explore the available workshops in the
workshops/
directory. Each workshop has its own README file with detailed instructions on how to set up and run the exercises. -
Choose a workshop that aligns with your learning goals and follow the provided instructions to set up the necessary infrastructure and tools.
-
Work through the exercises, taking notes and experimenting with the Ansible code examples provided in the workshop materials.
-
Refer to the Ansible documentation and community resources for additional support and guidance as needed.
Competitor Comparisons
Ansible for DevOps examples.
Pros of ansible-for-devops
- More focused on practical, real-world examples and scenarios
- Includes a companion book for in-depth explanations
- Smaller scope, making it easier for beginners to grasp
Cons of ansible-for-devops
- Less comprehensive coverage of Ansible features
- Fewer hands-on lab exercises
- May not be as up-to-date with the latest Ansible developments
Code Comparison
ansible-for-devops:
- name: Ensure Apache is installed
apt:
name: apache2
state: present
- name: Start Apache service
service:
name: apache2
state: started
workshops:
- name: Install and configure Apache
hosts: web_servers
become: yes
tasks:
- name: Install Apache
yum:
name: httpd
state: present
- name: Start and enable Apache
service:
name: httpd
state: started
enabled: yes
The code snippets show that ansible-for-devops uses simpler, more straightforward tasks, while workshops demonstrates a more structured approach with host targeting and additional options. Both repositories provide valuable resources for learning Ansible, with workshops offering a broader scope and more structured learning path, while ansible-for-devops focuses on practical, real-world applications.
A few starter examples of ansible playbooks, to show features and how they work together. See http://galaxy.ansible.com for example roles from the Ansible community for deploying many popular applications.
Pros of ansible-examples
- Provides a wide range of practical examples covering various use cases
- Easier to understand for beginners due to simpler structure and focused examples
- Can be quickly referenced for specific tasks or implementations
Cons of ansible-examples
- Less comprehensive and structured learning experience
- Lacks guided workshops or hands-on lab environments
- May not cover more advanced topics or real-world scenarios as thoroughly
Code Comparison
ansible-examples:
---
- hosts: webservers
vars:
http_port: 80
max_clients: 200
tasks:
- name: ensure apache is at the latest version
yum: name=httpd state=latest
workshops:
---
- name: Apache server installed
hosts: web
become: yes
tasks:
- name: latest Apache version installed
ansible.builtin.dnf:
name: httpd
state: latest
The workshops repository offers a more structured and comprehensive learning experience, with guided workshops and hands-on labs. It covers a broader range of topics and provides a more in-depth understanding of Ansible. However, ansible-examples is more straightforward for quick reference and may be easier for beginners to grasp specific concepts or implementations.
ansible-lint checks playbooks for practices and behavior that could potentially be improved and can fix some of the most common ones for you
Pros of ansible-lint
- Focused on linting and code quality, providing specific tools for Ansible best practices
- Regularly updated with new rules and improvements for Ansible syntax and style
- Can be integrated into CI/CD pipelines for automated code checks
Cons of ansible-lint
- Limited in scope compared to workshops, focusing only on linting
- Doesn't provide hands-on learning experiences or comprehensive Ansible training
- May require additional setup and configuration for optimal use
Code Comparison
ansible-lint:
- name: Example task
ansible.builtin.debug:
msg: "This is a debug message"
workshops:
- name: Configure webserver with nginx
hosts: webservers
become: yes
tasks:
- name: Install nginx
apt: name=nginx update_cache=yes state=latest
The ansible-lint example shows a simple task that would be checked for style and best practices, while the workshops example demonstrates a more complete playbook structure used for hands-on learning.
AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Pros of AWX
- Provides a web-based user interface for managing Ansible playbooks and inventories
- Offers role-based access control and job scheduling capabilities
- Integrates with various cloud providers and version control systems
Cons of AWX
- More complex setup and maintenance compared to Workshops
- Requires additional resources to run (database, message queue, etc.)
- Steeper learning curve for users new to Ansible
Code Comparison
AWX (Python):
from django.db import models
from django.utils.translation import ugettext_lazy as _
class Organization(models.Model):
name = models.CharField(max_length=512)
description = models.TextField(blank=True)
Workshops (YAML):
- name: Configure webserver with nginx
hosts: webservers
become: True
tasks:
- name: install nginx
apt: name=nginx update_cache=yes state=latest
Summary
AWX is a comprehensive web-based solution for managing Ansible at scale, offering advanced features like scheduling and access control. Workshops, on the other hand, focuses on providing educational content and hands-on exercises for learning Ansible. AWX is better suited for enterprise environments, while Workshops is ideal for training and skill development. The code examples highlight the difference in focus, with AWX using Django models for its web application and Workshops showcasing Ansible playbook syntax.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
Ansible Automation Technical Workshops
Read this in other languages:
English, æ¥æ¬èª
The Red Hat Ansible Automation Workshops project is intended for effectively demonstrating Ansible's capabilities through instructor-led workshops or self-paced exercises.
Website
- http://aap2.demoredhat.com - Please use the website which is rendered automatically from markdown files using Github Pages.
Workshop Catalog
90 minute workshops
RHEL 90
Ansible Red Hat Enterprise Linux Workshop
Focused on automating Linux platforms like Red Hat Enterprise Linux
Lab PageEDA
Event-Driven Ansible Technical Workshop
Covers EDA fundamentals such as sources, rules, and actions
Lab PageCloud
Introduction to cloud automation
Focused on how to orchestrate, operationalize and govern your hybrid cloud environments
Lab PageLightspeed
Ansible Lightspeed and Development Technical Workshop
Focused on the Ansible automation engineer or application developer.
Lab PageNetwork
Getting Started with Network Automation
Focused on Ansible Automation with respect to routers and switches.
Lab PageServiceNow
Getting Started with ServiceNow Automation
Focused on using Ansible Automation in conjunction with an IT Service Management (ITSM) tool
Lab PageWindows
Getting Started with Windows Automation
Focused on using Ansible Automation for automating tasks on a Windows host.
Lab PageCaC
CaC for Ansible Automation Platform
Focused on Configuration as Code for Ansible Automation Platform.
Lab Page4 hour workshops
EDA
Event-Driven Ansible Technical Workshop
Covers EDA fundamentals such as sources, rules, and actions
Lab PageLightspeed
Ansible Lightspeed and Development Technical Workshop
Focused on the Ansible automation engineer or application developer.
Lab PageCaC
CaC for Ansible Automation Platform
Focused on Configuration as Code for Ansible Automation Platform.
Lab Page6 hour workshops
RHEL
Ansible Red Hat Enterprise Linux Workshop
Focused on automating Linux platforms like Red Hat Enterprise Linux
Lab PageNetwork
Ansible Network Automation Workshop
Focused on router and switch platforms like Arista, Cisco, Juniper
Lab PageWindows
Ansible Windows Automation Workshop
Focused on automation of Microsoft Windows
Lab PageSmart Management
Automated Smart Management Workshop
Focused on automation of security and lifecycle management with Red Hat Satellite Server
Lab PageRIPU
RHEL In-place Upgrade Automation Workshop
Focused on automation of RHEL in-place upgrades at enterprise scale
Lab PageProduct-Demos
Product Demos
Ansible Product Demos
Sandbox for demoing, development, and experimentation
Lab PageClick-through demos
AAP on AWS
Red Hat Ansible Automation Platform Service on AWS - Managed Service - Getting Started.
Get started provisioning your Red Hat Ansible Automation Platform Service on AWS instance.
Lab PageAAP on Azure
Red Hat Ansible Automation Platform on Microsoft Azure - Managed Application - Getting Started
How to get started with Ansible Automation Platform on Microsoft Azure, the Managed Application
Lab PageLightspeed Trial
Ansible Lightspeed 90-day trial demo.
Walkthrough on how to setup Ansible Lightspeed's 90-day trial.
Lab PageSelf Paced Exercises
In addition to the workshops there are 15 minute to 60 minute individual learning scenarios available!
- Ansible Automation Platform Self-Paced Labs - These interactive learning scenarios provide you with a pre-configured Ansible Automation Platform environment to experiment, learn, and see how the platform can help you solve real-world problems. The environment runs entirely in your browser, enabling you to learn more about our technology at your pace and time.
Video Content
Documentation
Training
Trial
Community
Workshop Documentation
- Workshop attendance website
- How to contribute
- How to use the AWS Lab Provisioner
- FAQ
- Release Process
Top Related Projects
Ansible for DevOps examples.
A few starter examples of ansible playbooks, to show features and how they work together. See http://galaxy.ansible.com for example roles from the Ansible community for deploying many popular applications.
ansible-lint checks playbooks for practices and behavior that could potentially be improved and can fix some of the most common ones for you
AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot